CVE-2023-30806 Sangfor Next-Gen Application Firewall PHPSESSID Command Injection

Critical 9.8 Published Updated

Remote unauthenticated attackers can execute arbitrary OS commands via crafted PHPSESSID cookies in Sangfor NGAF firewalls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-30806?

CVE-2023-30806 is a critical command injection vulnerability in Sangfor Net-Gen Application Firewall, published on 10 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2023-30806?

It affects 1 product.

Products include Sangfor Next-Gen Application Firewall.

How do I fix CVE-2023-30806?

No fix has been published for CVE-2023-30806 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-30806 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30806 exists.

Sources

Also known as GHSA-xmqp-wmrm-vqv8.

Is CVE-2023-30806 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free