cve/2024/CVE-2024-8926.md

25 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-8926](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-8926)
![](https://img.shields.io/static/v1?label=Product&message=PHP&color=blue)
2025-09-29 21:09:30 +02:00
![](https://img.shields.io/static/v1?label=Version&message=8.1.*%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=8.1.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=8.2.*%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=8.2.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=8.3.*%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=8.3.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-78%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20an%20OS%20Command%20('OS%20Command%20Injection')&color=brightgreen)
2025-09-29 16:08:36 +00:00
### 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.
### POC
#### Reference
2025-09-29 21:09:30 +02:00
- https://github.com/php/php-src/security/advisories/GHSA-p99j-rfp4-xqvq
2025-09-29 16:08:36 +00:00
#### Github
- https://github.com/Night-have-dreams/php-cgi-Injector
2025-09-29 21:09:30 +02:00
- https://github.com/fkie-cad/nvd-json-data-feeds
2025-09-29 16:08:36 +00:00
- https://github.com/plzheheplztrying/cve_monitor