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.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Sangfor | Net-Gen Application Firewall | 8.0.17 |
References
- https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4Product
- https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/Exploit, Third Party Advisory
- https://vulncheck.com/advisories/sangfor-ngaf-sessid-rceThird Party Advisory
- https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4Product
- https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/Exploit, Third Party Advisory
- https://vulncheck.com/advisories/sangfor-ngaf-sessid-rceThird Party Advisory
Timeline
- Published
- Oct 10, 2023
- Last modified
- Jun 17, 2026
- NVD status
- Modified