← Vulnerability feed

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

CVE-2023-30805: Sangfor NGAF unauthenticated OS command injection in login endpoint

Sangfor · Next Gen Application Firewall

Sangfor Next-Gen Application Firewall 8.0.17 mishandles shell metacharacters in the "un" parameter of the /LogInOut.php endpoint, allowing OS command injection. Because the endpoint is reachable without authentication, this is a pre-auth remote code execution flaw in an internet-facing security appliance.

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 /LogInOut.php endpoint. This is due to mishandling of shell meta-characters in the "un" parameter.

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 priorityPre-auth remote command execution on an internet-facing security appliance with a 9.8 CVSS score and high EPSS probability.

What it is

Sangfor Next-Gen Application Firewall 8.0.17 mishandles shell metacharacters in the "un" parameter of the /LogInOut.php endpoint, allowing OS command injection. Because the endpoint is reachable without authentication, this is a pre-auth remote code execution flaw in an internet-facing security appliance.

Impact

An attacker can execute arbitrary operating system commands on the firewall, gaining full control of the device with high confidentiality, integrity and availability impact. Compromise of a perimeter firewall can expose or disrupt the network it protects.

Attack surface

Reached over the network via a crafted HTTP POST to /LogInOut.php; the CVSS vector indicates no privileges and no user interaction are required. The endpoint is part of the appliance's login handling, so it is expected to be exposed to management or internet traffic.

Exploitation

Not listed in CISA KEV, but EPSS is 0.65799 (99.2nd percentile) and a public third-party write-up is tagged as an exploit, indicating public exploit material exists. No ransomware group usage is documented in the record.

What to do

  • Apply the vendor patch or fixed firmware for Sangfor NGAF; confirm the exact fixed version with Sangfor since the record does not state one.
  • Restrict access to the NGAF management/login interface to trusted networks and block /LogInOut.php from untrusted sources.
  • Place the appliance behind access controls or a VPN so the login endpoint is not reachable from the internet.
  • Monitor vendor advisories and the referenced WatchTowr and VulnCheck write-ups for updated guidance.
  • If patching is delayed, consider isolating or replacing the exposed appliance given pre-auth RCE risk.

Detection

  • Inspect HTTP POST requests to /LogInOut.php for shell metacharacters or command syntax in the "un" parameter.
  • Alert on unexpected child processes or shell execution spawned by the firewall's web service.
  • Review firewall and web logs for anomalous POSTs to login endpoints from untrusted source IPs.
  • Hunt for outbound connections or command-and-control traffic originating from the NGAF appliance.

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-30805 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-30806Sangfor NGAF unauthenticated OS command injection via PHPSESSID cookieSangfor Next-Gen Application Firewall version NGAF8.0.17 mishandles shell meta-characters in the PHPSESSID cookie, allowing OS command injection. A r…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-30805), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.