CVE-2024-4577
Argument Injection in PHP-CGI
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 99.987% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: confirmed catalog inclusion. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 9.8 · published by phpCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T10:45:52.440Z
CVSS 3.1 · 9.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T14:19:00.650Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T10:45:52.440Z | CVE Program |
| epss | verified | 2026-11-19T16:04:39.116Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T10:45:52.440Z | CVE Program |
| lifecycle | verified | 2026-11-19T10:45:52.440Z | CVE Program |
Affected versions and configuration
PHP Group PHP (Windows); modules: CGI; default status: affected: 8.1.* to < 8.1.29 [affected; scheme: semver]; 8.2.* to < 8.2.20 [affected; scheme: semver]; 8.3.* to < 8.3.8 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "php8.3",
"debian": "https://tracker.debian.org/pkg/php8.3",
"source": "https://ubuntu.com/security/cve?package=php8.3",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=php8.3",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "windows-specific",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/php/php-src",
"vendor": "PHP Group",
"modules": [
"CGI"
],
"product": "PHP",
"versions": [
{
"status": "affected",
"version": "8.1.*",
"lessThan": "8.1.29",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.2.*",
"lessThan": "8.2.20",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.3.*",
"lessThan": "8.3.8",
"versionType": "semver"
}
],
"platforms": [
"Windows"
],
"defaultStatus": "affected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-4577",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "active"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-06-15T03:55:28.430189Z"
}
}
},
{
"other": {
"type": "kev",
"content": {
"dateAdded": "2024-06-12",
"reference": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:php_group:php:8.1.0:*:*:*:*:*:*:*"
],
"vendor": "php_group",
"product": "php",
"versions": [
{
"status": "affected",
"version": "8.1.0",
"lessThan": "8.1.29",
"versionType": "custom"
}
],
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:2.3:a:php_group:php:8.2.0:*:*:*:*:*:*:*"
],
"vendor": "php_group",
"product": "php",
"versions": [
{
"status": "affected",
"version": "8.2.0",
"lessThan": "8.2.20",
"versionType": "custom"
}
],
"defaultStatus": "affected"
},
{
"cpes": [
"cpe:2.3:a:php_group:php:8.3.0:*:*:*:*:*:*:*"
],
"vendor": "php_group",
"product": "php",
"versions": [
{
"status": "affected",
"version": "8.3.0",
"lessThan": "8.3.8",
"versionType": "custom"
}
],
"defaultStatus": "affected"
}
],
"timeline": [
{
"lang": "en",
"time": "2024-06-12T00:00:00.000Z",
"value": "CVE-2024-4577 added to CISA KEV"
}
],
"references": [
{
"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577",
"tags": [
"government-resource"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-10-21T23:05:16.089Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577"
},
{
"url": "https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577"
},
{
"url": "https://blog.talosintelligence.com/new-persistent-attacks-japan/"
},
{
"url": "https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv",
"tags": [
"x_transferred"
]
},
{
"url": "https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html",
"tags": [
"x_transferred"
]
},
{
"url": "https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/",
"tags": [
"x_transferred"
]
},
{
"url": "https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/11whoami99/CVE-2024-4577",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/xcanwin/CVE-2024-4577-PHP-RCE",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/rapid7/metasploit-framework/pull/19247",
"tags": [
"x_transferred"
]
},
{
"url": "https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/watchtowrlabs/CVE-2024-4577",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.php.net/ChangeLog-8.php#8.1.29",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.php.net/ChangeLog-8.php#8.2.20",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.php.net/ChangeLog-8.php#8.3.8",
"tags": [
"x_transferred"
]
},
{
"url": "https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately",
"tags": [
"x_transferred"
]
},
{
"url": "https://isc.sans.edu/diary/30994",
"tags": [
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2024/06/07/1",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20240621-0008/",
"tags": [
"x_transferred"
]
}
],
"x_generator": {
"engine": "ADPogram 0.0.1"
},
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-03-14T01:24:54.997Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T10:45:52.440ZArchived source JSON
Source publication: 2024-06-09T19:42:36.464Z
Source modification: 2025-10-21T23:05:16.089ZDocument fingerprint
d68091a944577b568963cbb524a1de813fd934bd3df0514f299abeda5d5092a8 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T14:19:00.650ZArchived source JSON
Source publication: 2024-06-09T20:15:00.000Z
Source modification: 2025-08-04T20:04:53.218ZDocument fingerprint
a85a2f22e3f1cc419e5cae301af80f330bf859713985b01660de1d1623424dfd - FIRST EPSSConsulted: 2026-11-19T16:04:39.116ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
9f0dcd79a206c1e9df7af3ccc3246b94763cde2daafc074aaa6c06dadb41d7a7
Official status history
- UNKNOWN → PUBLISHED · · evidence