CVE-2023-30806
Sangfor Next-Gen Application Firewall PHPSESSID Command Injection
- State
- Published
- Severity
- 9.8 Critical
- Published
- Oct 10, 2023
- Updated
- Nov 22, 2025
- Reserved
- Apr 18, 2023
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
Net-Gen Application FirewallSangfor |
|
References
- https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/third-party-advisoryexploittechnical-description
- https://vulncheck.com/advisories/sangfor-ngaf-sessid-rcethird-party-advisory
- https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.