{"answers":{"affected":"It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2022-42475 in the wild since at least 13 Dec 2022, including in ransomware campaigns.","fix":"No fix has been published for CVE-2022-42475 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 Jan 2023.","what":"CVE-2022-42475 is a critical memory corruption vulnerability in Fortinet Fortios, published on 2 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-42475 and fix it if it is affected.\n\nWhat it is: CVE-2022-42475 is a critical memory corruption vulnerability in Fortinet Fortios, published on 2 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-42475 in the wild since at least 13 Dec 2022, including in ransomware campaigns.\n\nAffected product: Fortinet Fortios. 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-42475/ (Markdown: https://insights.sbomify.com/CVE-2022-42475/index.md)","id":"CVE-2022-42475","markdown":"https://insights.sbomify.com/CVE-2022-42475/index.md","name":"CVE-2022-42475","record":{"aliases":["GHSA-p3vq-4cxh-gfp9"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Fortinet SSL-VPN","requires_auth":"none","summary":"Remote unauthenticated attackers can execute arbitrary code via crafted requests due to a heap-based buffer overflow in Fortinet SSL-VPN.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fortinet","cpe":[{"product":"fortios","vendor":"fortinet"},{"product":"fortiproxy","vendor":"fortinet"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-197","name":"Numeric Truncation Error"}],"description":"A heap-based buffer overflow vulnerability [CWE-122] in FortiOS SSL-VPN 7.2.0 through 7.2.2, 7.0.0 through 7.0.8, 6.4.0 through 6.4.10, 6.2.0 through 6.2.11, 6.0.15 and earlier  and FortiProxy SSL-VPN 7.2.0 through 7.2.1, 7.0.7 and earlier may allow a remote unauthenticated attacker to execute arbitrary code or commands via specifically crafted requests.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-01-17","github_poc":9,"max_poc_stars":108,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-02-23T10:04:58Z","kind":"github_poc","ref":"https://github.com/scrt/cve-2022-42475","stars":108,"title":"POC code to exploit the Heap overflow in Fortinet's SSLVPN daemon"},{"date":"2023-06-21T21:22:35Z","kind":"github_poc","ref":"https://github.com/0xhaggis/CVE-2022-42475","stars":33,"title":"An exploit for CVE-2022-42475, a pre-authentication heap overflow in Fortinet networking products"},{"date":"2023-03-23T06:48:14Z","kind":"github_poc","ref":"https://github.com/P4x1s/CVE-2022-42475-RCE-POC","stars":8,"title":"CVE-2022-42475 飞塔RCE漏洞 POC"},{"date":"2023-03-16T00:05:30Z","kind":"github_poc","ref":"https://github.com/Amir-hy/cve-2022-42475","stars":7,"title":"FortiOS buffer overflow vulnerability"},{"date":"2023-01-17T20:11:04Z","kind":"github_poc","ref":"https://github.com/bryanster/ioc-cve-2022-42475","stars":1,"title":"test for the ioc described for FG-IR-22-398"},{"date":"2023-03-22T04:26:22Z","kind":"github_poc","ref":"https://github.com/Mustafa1986/cve-2022-42475-Fortinet","stars":1,"title":null},{"date":"2026-08-25T04:17:24Z","kind":"github_poc","ref":"https://github.com/uLl0a/cve-2022-42475-poc","stars":1,"title":"Proof of Concept (PoC) for research and controlled laboratory validation of CVE-2022-42475, a critical heap-based buffer overflow vulnerability affecting the SSL-VPN service in certain versions of FortiOS."},{"date":"2023-04-27T03:47:14Z","kind":"github_poc","ref":"https://github.com/natceil/cve-2022-42475","stars":0,"title":null}],"tier":"exploited"},"has_fix":null,"headline":"Fortinet FortiOS Heap-Based Buffer Overflow","id":"CVE-2022-42475","indexable":true,"kev":{"dateAdded":"2022-12-13","dueDate":"2023-01-03","knownRansomwareCampaignUse":"Known","product":"FortiOS","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Fortinet","vulnerabilityName":"Fortinet FortiOS Heap-Based Buffer Overflow Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"fortinet:fortios","products":["fortinet:fortios","fortinet:fortiproxy"],"type":"memory_corruption","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Path traversal in FortiOS","id":"CVE-2022-42476"},"packages":[],"prev":{"headline":"Path traversal in FortiOS","id":"CVE-2022-42474"},"products":["FortiOS","FortiProxy"],"published":"2023-01-02","related":[{"cvss_score":9.8,"headline":"Fortinet Multiple Products Format String","id":"CVE-2024-23113","kev_date_added":"2024-10-09","published":"2024-02-15"},{"cvss_score":9.8,"headline":"Fortinet Multiple Products Authentication Bypass","id":"CVE-2022-40684","kev_date_added":"2022-10-11","published":"2022-10-18"},{"cvss_score":9.6,"headline":"Fortinet FortiOS and FortiProxy Authentication Bypass","id":"CVE-2024-55591","kev_date_added":"2025-01-14","published":"2025-01-14"},{"cvss_score":9.6,"headline":"Fortinet FortiOS Out-of-Bound Write","id":"CVE-2024-21762","kev_date_added":"2024-02-09","published":"2024-02-09"},{"cvss_score":9.2,"headline":"Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow","id":"CVE-2023-27997","kev_date_added":"2023-06-13","published":"2023-06-13"},{"cvss_score":9.1,"headline":"Fortinet Multiple Products Improper Verification of Cryptographic Signature","id":"CVE-2025-59718","kev_date_added":"2025-12-16","published":"2025-12-09"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Fortinet"]},"summary":"Remote unauthenticated attackers can execute arbitrary code via crafted requests due to a heap-based buffer overflow in Fortinet SSL-VPN.","url":"https://insights.sbomify.com/CVE-2022-42475/"}