Skip to main content
VulnerabilityPublished Updated

CVE-2023-30806: Sangfor Net-Gen Application Firewall · OS Command Injection

Affects Sangfor Net-Gen Application FirewallSource CVE Database V5

0

Not known to be exploited · 64% EPSS · CVSS 9.8 Critical.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Oct 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Sangfor Net-Gen Application FirewallAffected
  • =8.0.17
Fixed in–

AI-suggested

  1. Immediate application of vendor patches or updates once released is the most effective mitigation. Monitor Sangfor advisories closely.
  2. 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.
  3. 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.
  4. Conduct thorough input validation and sanitization on all user-supplied data, especially cookies, to prevent injection of shell meta-characters.
  5. Enable detailed logging and monitoring of firewall management interfaces to detect anomalous or unauthorized access attempts.
  6. Perform regular security assessments and penetration testing focusing on firewall devices to identify and remediate similar vulnerabilities proactively.
  7. Implement network segmentation to limit the impact of a compromised firewall and reduce attacker lateral movement.
  8. 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.

References

Community reviews

Loading reviews…