Vulnerabilities · 2024 · Php
CVE-2024-1874
Php vulnerability
In PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Php, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7 · Exploit
- security.netapp.com/advisory/ntap-20240510-0009/ · Third Party Advisory
- www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-c · Exploit
- www.openwall.com/lists/oss-security/2024/04/12/11
- www.openwall.com/lists/oss-security/2024/06/07/1
- lists.fedoraproject.org/archives/list/[email protected]/message/PKG
- lists.fedoraproject.org/archives/list/[email protected]/message/W45
- lists.fedoraproject.org/archives/list/[email protected]/message/KJZ
- nvd.nist.gov/vuln/detail/CVE-2024-1874
- cve.org/CVERecord?id=CVE-2024-1874
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.