{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-30806","id":"CVE-2023-30806","title":"Sangfor Next-Gen Application Firewall PHPSESSID Command Injection","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.","descriptionLong":"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.","published":"2023-10-10T14:27:42.771Z","updated":"2026-06-17T05:55:44.307Z","reserved":"2023-04-18T10:31:45.963Z","status":"Modified","rejected":false,"assigner":"VulnCheck","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"VulnCheck"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"VulnCheck"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"vulncheck.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"}],"rating":"critical","products":["Sangfor Net-Gen Application Firewall"],"affectedProducts":[{"vendor":"Sangfor","product":"Net-Gen Application Firewall","defaultStatus":"unaffected","versions":[{"status":"affected","version":"8.0.17"}],"platforms":["Linux"]}],"packages":[],"cwes":["CWE-78"],"aliases":[],"references":[{"url":"https://labs.watchtowr.com/yet-more-unauth-remote-command-execution-vulns-in-firewalls-sangfor-edition/","tags":["third-party-advisory","exploit","technical-description","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://vulncheck.com/advisories/sangfor-ngaf-sessid-rce","tags":["third-party-advisory","x_transferred","Third Party Advisory"]},{"url":"https://aws.amazon.com/marketplace/pp/prodview-uujwjffddxzp4","tags":["product","x_transferred","Product"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.64974,"epssPercentile":0.99265,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-30806","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30806","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-30806","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-30806","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 65% with CVSS 9.8"],"attention":null}