{"answers":{"affected":"2 open source packages ship an affected version, including golang and toolchain. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-38297 in the wild and no public exploit code.","fix":"Upgrade golang to a fixed version for your release line: 1.16.9 or 1.17.2.","what":"CVE-2021-38297 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 18 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-38297 and fix it if it is affected.\n\nWhat it is: CVE-2021-38297 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 18 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-38297 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected all versions; fixed in 1.16.9, 1.17.2\n- toolchain (Go): affected all versions; fixed in 1.16.9, 1.17.2\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-2021-38297/ (Markdown: https://insights.sbomify.com/CVE-2021-38297/index.md)","id":"CVE-2021-38297","markdown":"https://insights.sbomify.com/CVE-2021-38297/index.md","name":"CVE-2021-38297","record":{"aliases":["AZL-6450","BIT-golang-2021-38297","DEBIAN-CVE-2021-38297","GHSA-xv38-944c-p763","GO-2022-0247","SUSE-SU-2021:3487-1","SUSE-SU-2021:3488-1","UBUNTU-CVE-2021-38297","openSUSE-SU-2021:1420-1","openSUSE-SU-2021:3487-1","openSUSE-SU-2021:3488-1","openSUSE-SU-2024:11567-1","openSUSE-SU-2024:11568-1","openSUSE-SU-2024:12758-1","openSUSE-SU-2024:12759-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Go standard library","requires_auth":"none","summary":"A buffer overflow in the Go runtime allows attackers to execute arbitrary code or cause denial of service via large arguments in WASM modules.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"go","vendor":"golang"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH=wasm GOOS=js is used.","ecosystems":["Bitnami","Go","SUSE:Linux Enterprise Module for Development Tools 15 SP2","SUSE:Linux Enterprise Module for Development Tools 15 SP3","openSUSE:Leap 15.2","openSUSE:Leap 15.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-11-15","github_poc":2,"max_poc_stars":8,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-11-15T20:52:36Z","kind":"github_poc","ref":"https://github.com/gkrishnan724/CVE-2021-38297","stars":8,"title":"A Proof of concept scenario for exploitation of CVE2021-38297 GO WASM buffer-overflow"},{"date":"2024-04-04T01:17:05Z","kind":"github_poc","ref":"https://github.com/paras98/CVE-2021-38297-Go-wasm-Replication","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2021-38297","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"fedoraproject:fedora","products":["fedoraproject:fedora","golang:go"],"type":"memory_corruption","year":"2021"},"n_packages":13,"n_references":7,"next":{"headline":"XML external entity in n/a","id":"CVE-2021-38298"},"packages":[{"ecosystem":"Bitnami","fixed":["1.16.9","1.17.2"],"introduced":["0","1.17.0"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2021-38297"},{"ecosystem":"Go","fixed":["1.16.9","1.17.2"],"introduced":["0","1.17.0-0"],"last_affected":[],"package":"toolchain","purl":"pkg:golang/toolchain","source":"GO-2022-0247"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP2","fixed":["1.16.9-1.29.1"],"introduced":["0"],"last_affected":[],"package":"go1.16","purl":"pkg:rpm/suse/go1.16\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP2","source":"SUSE-SU-2021:3487-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP2","fixed":["1.17.2-1.6.2"],"introduced":["0"],"last_affected":[],"package":"go1.17","purl":"pkg:rpm/suse/go1.17\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP2","source":"SUSE-SU-2021:3488-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP3","fixed":["1.16.9-1.29.1"],"introduced":["0"],"last_affected":[],"package":"go1.16","purl":"pkg:rpm/suse/go1.16\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3","source":"SUSE-SU-2021:3487-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP3","fixed":["1.17.2-1.6.2"],"introduced":["0"],"last_affected":[],"package":"go1.17","purl":"pkg:rpm/suse/go1.17\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3","source":"SUSE-SU-2021:3488-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["1.16.9-lp152.14.1"],"introduced":["0"],"last_affected":[],"package":"go1.16","purl":"pkg:rpm/opensuse/go1.16\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:1420-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["1.16.9-1.29.1"],"introduced":["0"],"last_affected":[],"package":"go1.16","purl":"pkg:rpm/opensuse/go1.16\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:3487-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["1.17.2-1.6.2"],"introduced":["0"],"last_affected":[],"package":"go1.17","purl":"pkg:rpm/opensuse/go1.17\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:3488-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.16.9-1.1"],"introduced":["0"],"last_affected":[],"package":"go1.16","purl":"pkg:rpm/opensuse/go1.16\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11567-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.17.2-1.1"],"introduced":["0"],"last_affected":[],"package":"go1.17","purl":"pkg:rpm/opensuse/go1.17\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11568-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20230221.00-2.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/opensuse/google-guest-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12758-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20230222.00-2.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/opensuse/google-osconfig-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12759-1"}],"prev":{"headline":"Apache Spark Key Negotiation Vulnerability","id":"CVE-2021-38296"},"products":["n/a"],"published":"2021-10-18","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"A buffer overflow in the Go runtime allows attackers to execute arbitrary code or cause denial of service via large arguments in WASM modules.","url":"https://insights.sbomify.com/CVE-2021-38297/"}