{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-20731 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-20731 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-20731 is a medium-severity code injection vulnerability in Cisco IOS ROMMON Software, published on 15 Apr 2022. 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-2022-20731 and fix it if it is affected.\n\nWhat it is: CVE-2022-20731 is a medium-severity code injection vulnerability in Cisco IOS ROMMON Software, published on 15 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-20731 in the wild and no public exploit code.\n\nAffected product: Cisco IOS ROMMON Software. 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-2022-20731/ (Markdown: https://insights.sbomify.com/CVE-2022-20731/index.md)","id":"CVE-2022-20731","markdown":"https://insights.sbomify.com/CVE-2022-20731/index.md","name":"CVE-2022-20731","record":{"aliases":["GHSA-r38r-g64f-728h"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cisco Catalyst Switches","requires_auth":"none","summary":"Attackers can execute persistent code at boot time or cause permanent denial of service on Cisco Catalyst switches.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cisco","cpe":[{"product":"catalyst_digital_building_series_switches_firmware","vendor":"cisco"},{"product":"ios_rommon","vendor":"cisco"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"},{"id":"CWE-1221","name":"Incorrect Register Defaults or Module Parameters"}],"description":"Multiple vulnerabilities that affect Cisco Catalyst Digital Building Series Switches and Cisco Catalyst Micro Switches could allow an attacker to execute persistent code at boot time or to permanently prevent the device from booting, resulting in a permanent denial of service (DoS) condition. For more information about these vulnerabilities, see the Details section of this advisory.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Cisco Catalyst Digital Building Series Switches and Cisco Catalyst Micro Switches Vulnerabilities","id":"CVE-2022-20731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Cisco Virtualized Infrastructure Manager Privilege Escalation Vulnerability","id":"CVE-2022-20732"},"packages":[],"prev":{"headline":"Cisco Firepower Threat Defense Software Security Intelligence DNS Feed Bypass Vulnerability","id":"CVE-2022-20730"},"products":["Cisco IOS ROMMON Software"],"published":"2022-04-15","related":[],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-06","vendors":["Cisco"]},"summary":"Attackers can execute persistent code at boot time or cause permanent denial of service on Cisco Catalyst switches.","url":"https://insights.sbomify.com/CVE-2022-20731/"}