PHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)
In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using a certain non-standard configurations of Windows codepages, the fixes for CVE-2024-4577 https://github.com/advisories/GHSA-vxpp-6299-mxw3 may still be bypassed and the same command injection related to Windows "Best Fit" codepage behavior can be achieved. This may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-8926
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 03:52 UTC · Revision 1
Source evidence
PHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)
core-osv · Original sourcePublished 8 Oct 2024, 03:48 UTC
In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using a certain non-standard configurations of Windows codepages, the fixes for CVE-2024-4577 https://github.com/advisories/GHSA-vxpp-6299-mxw3 may still be bypassed and the same command injection related to Windows "Best Fit" codepage behavior can be achieved. This may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.
osv:CVE-2024-8926
Complete source record
{
"id": "59a11f331e62faa5b9d0d9d33d9fd66c27f6c4681844fe22b3514296c7e59f02",
"url": "https://osv.dev/vulnerability/CVE-2024-8926",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "PHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)",
"summary": "In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using a certain non-standard configurations of Windows codepages, the fixes for CVE-2024-4577 https://github.com/advisories/GHSA-vxpp-6299-mxw3 may still be bypassed and the same command injection related to Windows \"Best Fit\" codepage behavior can be achieved. This may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.",
"evidence": "osv:CVE-2024-8926",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-8926",
"aliases": [
"BIT-libphp-2024-8926",
"BIT-php-2024-8926",
"BIT-php-min-2024-8926",
"CVE-2024-8926",
"GHSA-p99j-rfp4-xqvq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"
},
{
"fixed": "773c0eda4ac8181c59a6510a39c37710679277a4"
},
{
"introduced": "70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"
},
{
"fixed": "12ccdff196cd927b2c3e9c04abad3c4117b5bd42"
},
{
"introduced": "d26068059e83fe40de3430a512471d194119bee0"
},
{
"fixed": "b4ecd9aa2edfdff932deb9c09105a9cb3445c3bc"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0"
},
{
"fixed": "8.1.30"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.2.0"
},
{
"fixed": "8.2.24"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.3.0"
},
{
"fixed": "8.3.12"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8926.json"
}
}
],
"modified": "2026-10-28T02:30:25.715379356Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8926.json",
"https://github.com/php/php-src/security/advisories/GHSA-p99j-rfp4-xqvq",
"https://nvd.nist.gov/vuln/detail/CVE-2024-8926",
"https://security.netapp.com/advisory/ntap-20241101-0003/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "php",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8926.json"
}
},
"related_cves": [
{
"value": "CVE-2024-8926",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492280,
"published_at": "2024-10-08T03:48:53.628+00:00"
}