{"id":"CVE-2023-30806","aliases":["CVE-2023-30806"],"related":[],"kind":"vulnerability","state":"published","title":"Sangfor Next-Gen Application Firewall PHPSESSID Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"La versión NGAF8.0.17 de Sangfor Next-Gen Application Firewall está afectada por una vulnerabilidad de inyección de comandos del sistema operativo. Un atacante remoto y no autenticado puede ejecutar comandos arbitrarios enviando una solicitud HTTP POST manipulada al endpoint /cgi-bin/login.cgi. Esto se debe a un mal manejo de los metacaracteres del shell en la cookie PHPSESSID.","source":"nvd"}],"published":"2023-10-10T14:27:42.771Z","modified":"2026-06-17T05:55:44.307Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"8.0.17","status":"affected"}],"vendor":"Sangfor","product":"Net-Gen Application Firewall","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"status":"affected","version":"ngaf8.0.17"}],"vendor":"sangfor","product":"next-gen_application_firewall","cpe":"cpe:2.3:a:sangfor:next-gen_application_firewall:ngaf8.0.17:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/","tags":["exploit","technical-description","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4","tags":["product","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["watchTowr Labs"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-09-18T18:16:06.445Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-30806","url":"https://www.cve.org/CVERecord?id=CVE-2023-30806","licence":"CVE Terms of Use","modified":"2025-11-22T14:16:22.540Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-30806","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30806","licence":"Public domain","modified":"2026-06-17T05:55:44.307Z"}],"updatedAt":"2026-11-25T22:58:28.590Z","epss":{"score":0.64974,"percentile":0.99262,"date":"2026-12-01T12:00:22.000Z"}}