{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30806 exists.","fix":"No fix has been published for CVE-2023-30806 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-30806 is a critical command injection vulnerability in Sangfor Net-Gen Application Firewall, published on 10 Oct 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-2023-30806 and fix it if it is affected.\n\nWhat it is: CVE-2023-30806 is a critical command injection vulnerability in Sangfor Net-Gen Application Firewall, published on 10 Oct 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-2023-30806 exists.\n\nAffected product: Sangfor Net-Gen Application Firewall. 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-2023-30806/ (Markdown: https://insights.sbomify.com/CVE-2023-30806/index.md)","id":"CVE-2023-30806","markdown":"https://insights.sbomify.com/CVE-2023-30806/index.md","name":"CVE-2023-30806","record":{"aliases":["GHSA-xmqp-wmrm-vqv8"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Next-Gen Application Firewall","requires_auth":"none","summary":"Remote unauthenticated attackers can execute arbitrary OS commands via crafted PHPSESSID cookies in Sangfor NGAF firewalls.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"next-gen_application_firewall","vendor":"sangfor"}],"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","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"The Sangfor Next-Gen Application Firewall version NGAF8.0.17 is vulnerable to an operating system command injection vulnerability. A remote and unauthenticated attacker can execute arbitrary commands by sending a crafted HTTP POST request to the /cgi-bin/login.cgi endpoint. This is due to mishandling of shell meta-characters in the PHPSESSID cookie.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":null,"headline":"Sangfor Next-Gen Application Firewall PHPSESSID Command Injection","id":"CVE-2023-30806","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":0,"n_references":3,"next":{"headline":"Vyper storage allocator overflow","id":"CVE-2023-30837"},"packages":[],"prev":{"headline":"Sangfor Next-Gen Application Firewall Login Un Param Command Injection","id":"CVE-2023-30805"},"products":["Net-Gen Application Firewall"],"published":"2023-10-10","related":[{"cvss_score":9.8,"headline":"Sangfor Next-Gen Application Firewall Authentication Bypass","id":"CVE-2023-30803","kev_date_added":null,"published":"2023-10-10"},{"cvss_score":9.8,"headline":"Sangfor Next-Gen Application Firewall Login Un Param Command Injection","id":"CVE-2023-30805","kev_date_added":null,"published":"2023-10-10"},{"cvss_score":6.9,"headline":"Sangfor Next-Gen Application Firewall Authenticated File Disclosure","id":"CVE-2023-30804","kev_date_added":null,"published":"2023-10-10"},{"cvss_score":5.3,"headline":"Sangfor Next-Gen Application Firewall Source Code Disclosure","id":"CVE-2023-30802","kev_date_added":null,"published":"2023-10-10"}],"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-22","vendors":["Sangfor"]},"summary":"Remote unauthenticated attackers can execute arbitrary OS commands via crafted PHPSESSID cookies in Sangfor NGAF firewalls.","url":"https://insights.sbomify.com/CVE-2023-30806/"}