{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31802 exists.","fix":"No fix has been published for CVE-2021-31802 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-31802 is a high-severity memory corruption vulnerability in Netgear R7000 Firmware, published on 26 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-31802 and fix it if it is affected.\n\nWhat it is: CVE-2021-31802 is a high-severity memory corruption vulnerability in Netgear R7000 Firmware, published on 26 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31802 exists.\n\nAffected product: Netgear R7000 Firmware. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-31802/ (Markdown: https://insights.sbomify.com/CVE-2021-31802/index.md)","id":"CVE-2021-31802","markdown":"https://insights.sbomify.com/CVE-2021-31802/index.md","name":"CVE-2021-31802","record":{"aliases":["GHSA-89v8-28p6-p87r"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"NETGEAR router","requires_auth":"none","summary":"A heap-based buffer overflow in NETGEAR R7000 routers allows unauthenticated attackers on the local network to execute arbitrary code as root via a crafted HTTP request.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"r7000_firmware","vendor":"netgear"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"NETGEAR R7000 1.0.11.116 devices have a heap-based Buffer Overflow that is exploitable from the local network without authentication. The vulnerability exists within the handling of an HTTP request. An attacker can leverage this to execute code as root. The problem is that a user-provided length value is trusted during a backup.cgi file upload. The attacker must add a \\n before the Content-Length header.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-04-21","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-04-21","kind":"metasploit","ref":"auxiliary/admin/http/netgear_r7000_backup_cgi_heap_overflow_rce","stars":null,"title":"Netgear R7000 backup.cgi Heap Overflow RCE"}],"tier":"weaponised"},"has_fix":null,"headline":"Memory corruption in n/a","id":"CVE-2021-31802","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"netgear:r7000_firmware","products":["netgear:r7000_firmware"],"type":"memory_corruption","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-31803"},"packages":[],"prev":{"headline":"Path traversal in impacket","id":"CVE-2021-31800"},"products":["n/a"],"published":"2021-04-26","related":[{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2022-37235","kev_date_added":null,"published":"2022-09-23"},{"cvss_score":8.8,"headline":"Auth bypass in R7000","id":"CVE-2021-34977","kev_date_added":null,"published":"2022-01-13"},{"cvss_score":8.4,"headline":"Command injection in n/a","id":"CVE-2024-35520","kev_date_added":null,"published":"2024-10-14"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2022-37234","kev_date_added":null,"published":"2022-09-22"},{"cvss_score":7.4,"headline":"Memory corruption in n/a","id":"CVE-2019-20758","kev_date_added":null,"published":"2020-04-16"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2021-45662","kev_date_added":null,"published":"2021-12-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A heap-based buffer overflow in NETGEAR R7000 routers allows unauthenticated attackers on the local network to execute arbitrary code as root via a crafted HTTP request.","url":"https://insights.sbomify.com/CVE-2021-31802/"}