{"answers":{"affected":"4 open source packages ship an affected version, including bundler. It affects 3 products.","exploited":"There is no known exploitation of CVE-2020-36327 in the wild and no public exploit code.","fix":"Upgrade bundler to a fixed version for your release line: 2.2.10 or 2.2.18.","what":"CVE-2020-36327 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-36327 and fix it if it is affected.\n\nWhat it is: CVE-2020-36327 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-36327 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- bundler (RubyGems): affected from 1.16.0; fixed in 2.2.10\n- bundler (RubyGems): affected from 1.16.0; fixed in 2.2.10\n- bundler (RubyGems): affected from 2.2.11; fixed in 2.2.18\n- bundler (RubyGems): affected from 2.2.11; fixed in 2.2.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-36327/ (Markdown: https://insights.sbomify.com/CVE-2020-36327/index.md)","id":"CVE-2020-36327","markdown":"https://insights.sbomify.com/CVE-2020-36327/index.md","name":"CVE-2020-36327","record":{"aliases":["ALSA-2022:0545","DEBIAN-CVE-2020-36327","GHSA-fp4w-jxhp-m23p","OESA-2021-1258","RHSA-2022:0545","RHSA-2022:0546","RHSA-2022:0547","RHSA-2022:0548","RLSA-2022:0545","ROOT-APP-RUBY-CVE-2020-36327","SUSE-SU-2025:1294-1","UBUNTU-CVE-2020-36327"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby dependency manager","requires_auth":"none","summary":"Bundler may install rogue public gems instead of intended private dependencies, allowing attackers to execute arbitrary code via dependency confusion.","user_interaction":"required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"bundler","vendor":"bundler"},{"product":"fedora","vendor":"fedoraproject"},{"product":"package_manager_configurations","vendor":"microsoft"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Bundler 1.16.0 through 2.2.9 and 2.2.11 through 2.2.16 sometimes chooses a dependency source based on the highest gem version number, which means that a rogue gem found at a public source may be chosen, even if the intended choice was a private gem that is a dependency of another private gem that is explicitly depended on by the application. NOTE: it is not correct to use CVE-2021-24105 for every \"Dependency Confusion\" issue in every product.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.4::appstream","Rocky Linux:8","RubyGems","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Dependency Confusion in Bundler","id":"CVE-2020-36327","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"supply_chain","year":"2020"},"n_packages":89,"n_references":6,"next":{"headline":"Memory corruption in libwebp","id":"CVE-2020-36328"},"packages":[{"ecosystem":"RubyGems","fixed":["2.2.10"],"introduced":["1.16.0"],"last_affected":[],"package":"bundler","purl":null,"source":"GHSA-fp4w-jxhp-m23p"},{"ecosystem":"RubyGems","fixed":["2.2.10"],"introduced":["1.16.0"],"last_affected":[],"package":"bundler","purl":"pkg:gem/bundler","source":"GHSA-fp4w-jxhp-m23p"},{"ecosystem":"RubyGems","fixed":["2.2.18"],"introduced":["2.2.11"],"last_affected":[],"package":"bundler","purl":null,"source":"GHSA-fp4w-jxhp-m23p"},{"ecosystem":"RubyGems","fixed":["2.2.18"],"introduced":["2.2.11"],"last_affected":[],"package":"bundler","purl":"pkg:gem/bundler","source":"GHSA-fp4w-jxhp-m23p"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.9-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/almalinux/ruby","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.9-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/almalinux/ruby-devel","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.9-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/almalinux/ruby-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.9-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"ruby-irb","purl":"pkg:rpm/almalinux/ruby-irb","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.9-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/almalinux/ruby-libs","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt","purl":"pkg:rpm/almalinux/rubygem-abrt","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+2623+08a8ba32"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt","purl":"pkg:rpm/almalinux/rubygem-abrt","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt","purl":"pkg:rpm/almalinux/rubygem-abrt","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt-doc","purl":"pkg:rpm/almalinux/rubygem-abrt-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+2623+08a8ba32"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt-doc","purl":"pkg:rpm/almalinux/rubygem-abrt-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.3.0-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-abrt-doc","purl":"pkg:rpm/almalinux/rubygem-abrt-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.4-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/almalinux/rubygem-bigdecimal","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.0-2.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-bson","purl":"pkg:rpm/almalinux/rubygem-bson","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.0-2.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-bson","purl":"pkg:rpm/almalinux/rubygem-bson","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.0-2.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-bson-doc","purl":"pkg:rpm/almalinux/rubygem-bson-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.0-2.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-bson-doc","purl":"pkg:rpm/almalinux/rubygem-bson-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.16.1-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler","purl":"pkg:rpm/almalinux/rubygem-bundler","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.16.1-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler","purl":"pkg:rpm/almalinux/rubygem-bundler","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.16.1-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler-doc","purl":"pkg:rpm/almalinux/rubygem-bundler-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.16.1-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler-doc","purl":"pkg:rpm/almalinux/rubygem-bundler-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.0-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-did_you_mean","purl":"pkg:rpm/almalinux/rubygem-did_you_mean","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.6-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console","purl":"pkg:rpm/almalinux/rubygem-io-console","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.1.0-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-json","purl":"pkg:rpm/almalinux/rubygem-json","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["5.10.3-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-minitest","purl":"pkg:rpm/almalinux/rubygem-minitest","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-2.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-mongo","purl":"pkg:rpm/almalinux/rubygem-mongo","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-2.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-mongo","purl":"pkg:rpm/almalinux/rubygem-mongo","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-2.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-mongo-doc","purl":"pkg:rpm/almalinux/rubygem-mongo-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-2.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-mongo-doc","purl":"pkg:rpm/almalinux/rubygem-mongo-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.10-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2","purl":"pkg:rpm/almalinux/rubygem-mysql2","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.10-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2","purl":"pkg:rpm/almalinux/rubygem-mysql2","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.10-4.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2-doc","purl":"pkg:rpm/almalinux/rubygem-mysql2-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.4.10-4.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2-doc","purl":"pkg:rpm/almalinux/rubygem-mysql2-doc","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["0.1.1-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-net-telnet","purl":"pkg:rpm/almalinux/rubygem-net-telnet","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["2.1.2-107.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-openssl","purl":"pkg:rpm/almalinux/rubygem-openssl","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-2.module_el8.5.0+259+8cec6917"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg","purl":"pkg:rpm/almalinux/rubygem-pg","source":"ALSA-2022:0545"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-2.module_el8.5.0+2625+ec418553"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg","purl":"pkg:rpm/almalinux/rubygem-pg","source":"ALSA-2022:0545"}],"prev":{"headline":"Object injection in PHPMailer/PHPMailer","id":"CVE-2020-36326"},"products":["n/a"],"published":"2021-04-29","related":[{"cvss_score":9.8,"headline":"Bundler allows attacker to inject arbitrary code via secondary Gem source","id":"CVE-2016-7954","kev_date_added":null,"published":"2016-12-22"},{"cvss_score":7.8,"headline":"Insecure path handling in Bundler","id":"CVE-2019-3881","kev_date_added":null,"published":"2020-09-04"},{"cvss_score":6.7,"headline":"Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile","id":"CVE-2021-43809","kev_date_added":null,"published":"2021-12-08"},{"cvss_score":5,"headline":"Bundler may install gems from a different source than expected","id":"CVE-2013-0334","kev_date_added":null,"published":"2014-10-31"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":"Bundler may install rogue public gems instead of intended private dependencies, allowing attackers to execute arbitrary code via dependency confusion.","url":"https://insights.sbomify.com/CVE-2020-36327/"}