{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39952 exists.","fix":"No fix has been published for CVE-2022-39952 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-39952 is a critical path traversal vulnerability in Fortinet FortiNAC, published on 16 Feb 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-39952 and fix it if it is affected.\n\nWhat it is: CVE-2022-39952 is a critical path traversal vulnerability in Fortinet FortiNAC, published on 16 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39952 exists.\n\nAffected product: Fortinet FortiNAC. 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-39952/ (Markdown: https://insights.sbomify.com/CVE-2022-39952/index.md)","id":"CVE-2022-39952","markdown":"https://insights.sbomify.com/CVE-2022-39952/index.md","name":"CVE-2022-39952","record":{"aliases":["GHSA-4wjq-4wff-qw9c"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Fortinet FortiNAC","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary code via crafted HTTP requests due to improper file path control in FortiNAC.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fortinet","cpe":[{"product":"fortinac","vendor":"fortinet"}],"cvss":{"score":9.8,"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:H/RL:U/RC:C","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"description":"A external control of file name or path in Fortinet FortiNAC versions 9.4.0, 9.2.0 through 9.2.5, 9.1.0 through 9.1.7, 8.8.0 through 8.8.11, 8.7.0 through 8.7.6, 8.6.0 through 8.6.5, 8.5.0 through 8.5.4, 8.3.7 may allow an unauthenticated attacker to execute unauthorized code or commands via specifically crafted HTTP request.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-02-16","github_poc":4,"max_poc_stars":266,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-02-20T15:12:33Z","kind":"github_poc","ref":"https://github.com/horizon3ai/CVE-2022-39952","stars":266,"title":"POC for CVE-2022-39952"},{"date":"2023-02-26T18:10:04Z","kind":"github_poc","ref":"https://github.com/Chocapikk/CVE-2022-39952","stars":3,"title":"PoC for CVE-2022-39952 affecting Fortinet FortiNAC."},{"date":"2023-02-22T04:57:06Z","kind":"github_poc","ref":"https://github.com/shiyeshu/CVE-2022-39952_webshell","stars":2,"title":"Write Behinder_webshell to target using CVE-2022-39952"},{"date":"2023-02-16","kind":"metasploit","ref":"exploit/linux/http/fortinac_keyupload_file_write","stars":null,"title":"Fortinet FortiNAC keyUpload.jsp arbitrary file write"},{"date":"2023-03-27T17:25:17Z","kind":"github_poc","ref":"https://github.com/dkstar11q/CVE-2022-39952-better","stars":0,"title":"PoC for CVE-2022-39952 affecting Fortinet FortiNAC."},{"date":null,"kind":"nuclei","ref":"http/cves/2022/CVE-2022-39952.yaml","stars":null,"title":"Fortinet FortiNAC - Arbitrary File Write"}],"tier":"weaponised"},"has_fix":null,"headline":"Path traversal in FortiNAC","id":"CVE-2022-39952","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Privilege escalation in FortiNAC","id":"CVE-2022-39953"},"packages":[],"prev":{"headline":"Command injection in FortiWeb","id":"CVE-2022-39951"},"products":["FortiNAC"],"published":"2023-02-16","related":[{"cvss_score":9.6,"headline":"Deserialization in FortiNAC","id":"CVE-2023-33299","kev_date_added":null,"published":"2023-06-23"},{"cvss_score":8.8,"headline":"Hardcoded credentials in Fortinet FortiNAC","id":"CVE-2022-26117","kev_date_added":null,"published":"2022-07-18"},{"cvss_score":8.6,"headline":"Missing authorization in FortiNAC","id":"CVE-2022-38375","kev_date_added":null,"published":"2023-02-16"},{"cvss_score":7.8,"headline":"Privilege escalation in FortiNAC","id":"CVE-2022-39953","kev_date_added":null,"published":"2023-03-07"},{"cvss_score":7.8,"headline":"Privilege escalation in Fortinet FortiNAC","id":"CVE-2021-43065","kev_date_added":null,"published":"2021-12-09"},{"cvss_score":7.8,"headline":"Privilege escalation in Fortinet FortiNAC","id":"CVE-2021-41021","kev_date_added":null,"published":"2021-12-08"}],"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"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-23","vendors":["Fortinet"]},"summary":"Unauthenticated attackers can execute arbitrary code via crafted HTTP requests due to improper file path control in FortiNAC.","url":"https://insights.sbomify.com/CVE-2022-39952/"}