CVE-2023-30806 CRITICAL

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

Vendor Sangfor
Product Net-Gen Application Firewall
Weakness CWE-78
Published October 10, 2023
Last update November 22, 2025

CVSS base score

9.8/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity High

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 10, 2023 CVE published
November 22, 2025 Record updated