CVE-2023-30806
Sangfor Next-Gen Application Firewall PHPSESSID Command Injection
CRITICAL 9.8EPSS 65.0%
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.
- Affected
- Sangfor · Net-Gen Application Firewall
- CVSS v3.1 NVD
- 9.8 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 64.97% chance of exploitation in the next 30 days, 99th percentile
- Published
- 2023-10-10
- Updated
- 2025-11-22
Proof-of-concept exploits (1)
Security advisories
- https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sa…
- https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce
- https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4