CVE-2024-1874

Critical

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.

SeverityCritical
CVSS9.4
Exploit probability—
ProductPhp
PublishedApr 29, 2024
First seenApr 29, 2024
Weakness typeCWE-116CWE-116

How to fix

Update
  • php php8.1.28, 8.2.18, 8.3.5 or later

Affected products

ProductAffected versionsFixed in
php php8.1.0 ≤ v < 8.1.28, 8.2.0 ≤ v < 8.2.18, 8.3.0 ≤ v < 8.3.58.1.28, 8.2.18, 8.3.5
fedoraproject fedora39, 40—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.