CVE-2023-30806: Sangfor Net-Gen Application Firewall · OS Command Injection
Affects Sangfor Net-Gen Application FirewallSource CVE Database V5
Not known to be exploited · 64% EPSS · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 64.9% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Oct 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Sangfor Net-Gen Application Firewall | Affected
| Fixed in– |
AI-suggested
- Immediate application of vendor patches or updates once released is the most effective mitigation. Monitor Sangfor advisories closely.
- Until patches are available, restrict network access to the /cgi-bin/login.cgi endpoint by implementing firewall rules or access control lists limiting connections to trusted management IPs only.
- Deploy Web Application Firewalls (WAFs) or intrusion prevention systems (IPS) with signatures or rules to detect and block suspicious HTTP POST requests targeting the PHPSESSID cookie or the vulnerable endpoint.
- Conduct thorough input validation and sanitization on all user-supplied data, especially cookies, to prevent injection of shell meta-characters.
- Enable detailed logging and monitoring of firewall management interfaces to detect anomalous or unauthorized access attempts.
- Perform regular security assessments and penetration testing focusing on firewall devices to identify and remediate similar vulnerabilities proactively.
- Implement network segmentation to limit the impact of a compromised firewall and reduce attacker lateral movement.
- Educate security teams about this vulnerability and prepare incident response plans to quickly contain and remediate any exploitation attempts.
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.