CVE-2024-8926: PHP - Command Injection
- Cve: CVE-2024-8926
- Name: PHP - Command Injection
- Description: 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.
- Impact: Attackers can execute arbitrary PHP code or access source code, leading to full server compromise.
- Remediation: Update PHP to version 8.1.30, 8.2.24, 8.3.12 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03662
- Epss percentile: 0.89917
- Assignee: [email protected]
- Published at: 2024-10-08T04:15:10Z
- Age in days: 777
- Modified at: 2026-06-17T08:23:34Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8926
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-p99j-rfp4-xqvq | nvd | 2024-10-08 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-p99j-rfp4-xqvq | nvd | Exploit, Vendor Advisory |
| https://security.netapp.com/advisory/ntap-20241101-0003/ | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | >= 8.3.0, < 8.3.12; >= 8.2.0, < 8.2.24; >= 8.1.0, < 8.1.30 | no | nvd | /v1/products/php/php |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| php/php-src | fix, security_advisory | yes | /v1/repositories/php/php-src |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-10-08
- Remote: yes
- Authentication required: yes
- Exposed hosts: 6200906
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports