Vulnerabilities / CVE-2024-1874

critical

CVE-2024-1874

php: Fail to Escape Arguments Properly in Microsoft Windows

Published Modified CWE 116
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

Bitnami9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Trivy's own label is CRITICAL. Rated critical by Azure Linux, Bitnami.

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0php0:8.3.8-1.azl3
bitnami::Bitnami Vulnerability Databaselibphp, php, php-min8.1.28, 8.2.18, 8.3.5
alpine 3.19php81, php82, php838.1.28-r0 and 2 more
alpine 3.20php82, php838.2.18-r0 and 1 more
alpine 3.21php82, php838.2.18-r0 and 1 more
alpine 3.22php82, php838.2.18-r0 and 1 more
alpine 3.23php838.3.5-r0
alpine 3.24php838.3.5-r0
alpine edgephp838.3.5-r0
echophp-7.27.2.34+e1
Show all 17 entries from 10 sources
SourcePackageFixed in
Azure Linux 3.0php0:8.3.8-1.azl3
bitnami::Bitnami Vulnerability Databaselibphp8.1.28, 8.2.18, 8.3.5
bitnami::Bitnami Vulnerability Databasephp8.1.28, 8.2.18, 8.3.5
bitnami::Bitnami Vulnerability Databasephp-min8.1.28, 8.2.18, 8.3.5
alpine 3.19php818.1.28-r0
alpine 3.19php828.2.18-r0
alpine 3.19php838.3.6-r0
alpine 3.20php828.2.18-r0
alpine 3.20php838.3.5-r0
alpine 3.21php828.2.18-r0
alpine 3.21php838.3.5-r0
alpine 3.22php828.2.18-r0
alpine 3.22php838.3.5-r0
alpine 3.23php838.3.5-r0
alpine 3.24php838.3.5-r0
alpine edgephp838.3.5-r0
echophp-7.27.2.34+e1

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.