9.4

CVE-2024-1874: Command injection via array-ish $command parameter of proc_open()

Modified
AliasesALPINE-CVE-2024-1874
Published 29-04-2024Last modified 04-11-2025

Vulnerability summary

CVE-2024-1874 is a critical (CVSS 9.4) Improper Encoding or Escaping of Output vulnerability in fedoraproject fedora. EPSS estimates a 32.80% chance of exploitation in the next 30 days, higher than 98.3% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.4/10
010
Critical · v3.1 (CVE.org)
EPSS score
32.80%
0%100%
High · +0.23 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github, reference

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 29-04-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

32.80%

Chance of exploitation in the next 30 days

Percentile

98%

Versus all other CVEs

30-day change

Increase +0.23 pp

From 32.57% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Php Src

    Maturity: poc

  • referenceUnverified

    Exploit Reference (vicarius.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine3 products
  • php81< 8.1.28-r0
  • php82< 8.2.18-r0
  • php83< 8.3.6-r0 | < 8.3.5-r0
Fedoraproject1 product
Php1 product
  • php≥ 8.1.0, < 8.1.28 | ≥ 8.2.0, < 8.2.18 | ≥ 8.3.0, < 8.3.5
Php group1 product
  • php≥ 8.1.*, < 8.1.28 | ≥ 8.2.*, < 8.2.18 | ≥ 8.3.*, < 8.3.5

4 vendors · 6 products

References

12 links
Show all 12 references