{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-30806","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2023-04-18T10:31:45.963Z","datePublished":"2023-10-10T14:27:42.771Z","dateUpdated":"2025-11-22T14:16:22.540Z"},"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","platforms":["Linux"],"product":"Net-Gen Application Firewall","vendor":"Sangfor","versions":[{"status":"affected","version":"8.0.17"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:sangfor:net-gen_application_firewall:8.0.17:*:*:*:*:*:*:*","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"OR"}],"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"watchTowr Labs"},{"lang":"en","type":"reporter","user":"00000000-0000-4000-9000-000000000000","value":"watchTowr Labs"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<div>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.<br></div>"}],"value":"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."}],"impacts":[{"capecId":"CAPEC-88","descriptions":[{"lang":"en","value":"CAPEC-88 OS Command Injection"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","description":"CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2025-11-22T14:16:22.540Z"},"references":[{"tags":["third-party-advisory","exploit","technical-description"],"url":"https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/"},{"tags":["third-party-advisory"],"url":"https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce"},{"tags":["product"],"url":"https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4"}],"source":{"discovery":"UNKNOWN"},"title":"Sangfor Next-Gen Application Firewall PHPSESSID Command Injection","x_generator":{"engine":"vulncheck"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T14:37:15.383Z"},"title":"CVE Program Container","references":[{"tags":["third-party-advisory","exploit","technical-description","x_transferred"],"url":"https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/"},{"tags":["third-party-advisory","x_transferred"],"url":"https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce"},{"tags":["product","x_transferred"],"url":"https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4"}]},{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-18T18:16:06.445929Z","id":"CVE-2023-30806","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-18T18:16:25.362Z"}}]}}