{"id":"CVE-2023-30806","published":"2023-10-10T14:27:42Z","modified":"2025-11-22T14:16:22Z","title":"Sangfor Next-Gen Application Firewall PHPSESSID Command Injection","vendor":"Sangfor","product":"Net-Gen Application Firewall","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.35374,"percentile":0.98823,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/","tags":["third-party-advisory","exploit","technical-description"]},{"url":"https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce","tags":["third-party-advisory"]},{"url":"https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4","tags":["product"]}],"priority":{"score":31.6,"factors":[{"name":"EPSS percentile","points":19.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"sangfor","affectedVersions":[{"vendor":"Sangfor","product":"Net-Gen Application Firewall","versions":["8.0.17"]}],"capec":[{"id":"CAPEC-88","name":"OS Command Injection"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-09-18T18:16:06.445929Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The Sangfor Next-Gen Application Firewall (Net-Gen Application Firewall) version NGAF8.0.17 contains an operating system command injection flaw, caused by improper handling of shell meta-characters in the PHPSESSID cookie. A remote, unauthenticated attacker with network access can execute arbitrary commands by sending a crafted HTTP POST request to the /cgi-bin/login.cgi endpoint, requiring no credentials or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:44:56Z"},"euvd":{"id":"EUVD-2023-35166","exploited":false,"provenance":"source"},"exploitRefs":["https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/"]}