CVE-2024-1874
php: Fail to Escape Arguments Properly in Microsoft Windows
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según Azure Linux, Bitnami.
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| Azure Linux 3.0 | php | 0:8.3.8-1.azl3 |
| bitnami::Bitnami Vulnerability Database | libphp, php, php-min | 8.1.28, 8.2.18, 8.3.5 |
| alpine 3.19 | php81, php82, php83 | 8.1.28-r0 y 2 más |
| alpine 3.20 | php82, php83 | 8.2.18-r0 y 1 más |
| alpine 3.21 | php82, php83 | 8.2.18-r0 y 1 más |
| alpine 3.22 | php82, php83 | 8.2.18-r0 y 1 más |
| alpine 3.23 | php83 | 8.3.5-r0 |
| alpine 3.24 | php83 | 8.3.5-r0 |
| alpine edge | php83 | 8.3.5-r0 |
| echo | php-7.2 | 7.2.34+e1 |
Mostrar las 17 entradas de 10 fuentes
| Fuente | Paquete | Corregido en |
|---|---|---|
| Azure Linux 3.0 | php | 0:8.3.8-1.azl3 |
| bitnami::Bitnami Vulnerability Database | libphp | 8.1.28, 8.2.18, 8.3.5 |
| bitnami::Bitnami Vulnerability Database | php | 8.1.28, 8.2.18, 8.3.5 |
| bitnami::Bitnami Vulnerability Database | php-min | 8.1.28, 8.2.18, 8.3.5 |
| alpine 3.19 | php81 | 8.1.28-r0 |
| alpine 3.19 | php82 | 8.2.18-r0 |
| alpine 3.19 | php83 | 8.3.6-r0 |
| alpine 3.20 | php82 | 8.2.18-r0 |
| alpine 3.20 | php83 | 8.3.5-r0 |
| alpine 3.21 | php82 | 8.2.18-r0 |
| alpine 3.21 | php83 | 8.3.5-r0 |
| alpine 3.22 | php82 | 8.2.18-r0 |
| alpine 3.22 | php83 | 8.3.5-r0 |
| alpine 3.23 | php83 | 8.3.5-r0 |
| alpine 3.24 | php83 | 8.3.5-r0 |
| alpine edge | php83 | 8.3.5-r0 |
| echo | php-7.2 | 7.2.34+e1 |
Referencias
- http://www.openwall.com/lists/oss-security/2024/04/12/11
- http://www.openwall.com/lists/oss-security/2024/06/07/1
- https://access.redhat.com/security/cve/CVE-2024-1874
- https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/
- https://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
Las 14 referencias
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
- https://nvd.nist.gov/vuln/detail/CVE-2024-1874
- https://security.netapp.com/advisory/ntap-20240510-0009/
- https://www.cve.org/CVERecord?id=CVE-2024-1874
- https://www.kb.cert.org/vuls/id/123335
- https://www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-cve-2024-1874-and-cve-2024-5585