← Vulnerability feed

Vulnerability record · CVE-2023-30806 · published 10 October 2023

CVE-2023-30806: Sangfor NGAF unauthenticated OS command injection via PHPSESSID cookie

Sangfor · Next Gen Application Firewall

Sangfor Next-Gen Application Firewall version NGAF8.0.17 mishandles shell meta-characters in the PHPSESSID cookie, allowing OS command injection. A remote, unauthenticated attacker can execute arbitrary commands by sending a crafted HTTP POST request to /cgi-bin/login.cgi. Because the target is an edge firewall, successful exploitation can compromise a perimeter device.

9.8 CVSS 3.1 Critical EPSS 66% · top 0.8% CWE-78 · OS command injection
9.8CVSS 3.1 base score
66%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityUnauthenticated remote command execution on an internet-facing security appliance with a critical CVSS score and very high EPSS probability.

What it is

Sangfor Next-Gen Application Firewall version NGAF8.0.17 mishandles shell meta-characters in the PHPSESSID cookie, allowing OS command injection. A remote, unauthenticated attacker can execute arbitrary commands by sending a crafted HTTP POST request to /cgi-bin/login.cgi. Because the target is an edge firewall, successful exploitation can compromise a perimeter device.

Impact

An attacker gains arbitrary command execution on the firewall with the privileges of the vulnerable CGI process, enabling full control of the appliance and potential lateral movement into protected networks.

Attack surface

Reachable over the network via HTTP POST to /cgi-bin/login.cgi; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is 0.65799 (99.2nd percentile) and a public exploit write-up is referenced, indicating high likelihood of exploitation.

What to do

  • Apply the vendor patch or fixed firmware for Sangfor NGAF8.0.17 as soon as it is available.
  • If patching is not immediately possible, restrict access to the management interface and /cgi-bin/login.cgi to trusted management networks only.
  • Place the firewall management interface behind a VPN or jump host and block direct internet exposure.
  • Monitor vendor advisories and replace or isolate the appliance if no fix is provided.

Detection

  • Inspect HTTP requests to /cgi-bin/login.cgi for shell metacharacters (;, |, $(), backticks) in the PHPSESSID cookie.
  • Alert on unexpected outbound connections or process execution from the firewall appliance.
  • Review firewall and web logs for anomalous POST requests to CGI endpoints from untrusted sources.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-30806 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-30805Sangfor NGAF unauthenticated OS command injection in login endpointSangfor Next-Gen Application Firewall 8.0.17 mishandles shell metacharacters in the "un" parameter of the /LogInOut.php endpoint, allowing OS command…EPSS 66%analysed9.8CVE-2023-30803Sangfor next-gen application firewall authentication bypass by spoofing vulnerabilityThe Sangfor Next-Gen Application Firewall version NGAF8.0.17 is vulnerable to an authentication bypass vulnerability. A remote and unauthenticated at…EPSS 18%6.5CVE-2023-30804Sangfor next-gen application firewall information exposure vulnerabilityThe Sangfor Next-Gen Application Firewall version NGAF8.0.17 is vulnerable to an authenticated file disclosure vulnerability. A remote and authentica…EPSS 13%5.3CVE-2023-30802Sangfor next-gen application firewall exposure of resource to wrong sphere vulnerabilityThe Sangfor Next-Gen Application Firewall version NGAF8.0.17 is vulnerable to a source code disclosure vulnerability. A remote and unauthenticated at…EPSS 0.65%8.8CVE-2026-53266Linux kernel ebtables SNAT out-of-bounds write in ARP rewriteThe ebtables SNAT target rewrites the ARP sender hardware address via skb_store_bits() without first making that range writable. When the ARP SHA byt…KEVEPSS 0.65%analysed8.8CVE-2026-87491Google Chrome V8 out-of-bounds write enables sandbox code executionChrome before 153.0.8010.36 contains an out-of-bounds write in the V8 JavaScript engine. A crafted HTML page can trigger the memory corruption, and b…KEVEPSS 3.1%analysed9.8CVE-2025-25249Fortinet FortiOS and FortiSwitchManager heap buffer overflow via crafted packetsA heap-based buffer overflow (CWE-122/CWE-787) in Fortinet FortiOS 6.4 through 7.6.3 and FortiSwitchManager 7.0 through 7.2.6 lets an unauthenticated…KEVEPSS 3.9%analysed7.8CVE-2026-83549SonicWall SMA1000 AMC OS Command InjectionThe SMA1000 Appliance Management Console contains an OS command injection flaw (CWE-78) that lets an authenticated administrator execute arbitrary op…KEVEPSS 11%analysed

Source: NIST National Vulnerability Database (record CVE-2023-30806), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.