Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-5585

published high CVSS 3.1 · 7.7

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

Published
09 Jun 2024, 18:36:50 UTC
Updated
13 Feb 2025, 17:54:21 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
PHP Group — PHP8.1.* to < 8.1.29 · 8.2.* to < 8.2.20 · 8.3.* to < 8.3.8 · Other versions: affected · Platforms: Windows Affected Not stated php
php — php8.1.0 to < 8.1.29 · Other versions: affected Affected Not stated CISA-ADP
php — php8.2.0 to < 8.2.20 · Other versions: affected Affected Not stated CISA-ADP
php — php8.3.0 to < 8.3.8 · Other versions: affected Affected Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Alpine Linux v3.19 php81 Fixed 8.1.29-r0 Package fix record
Alpine Linux v3.19 php82 Fixed 8.2.20-r0 Package fix record
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.19 php83 Fixed 8.3.8-r0 Package fix record

Description

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: 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.

en · php · cna

Vendor advisories explicitly linked to this CVE.

3

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.7 / 10
Severity
high
Provider
php · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
Scenarios
en: GENERAL

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
PHP Group PHP 8.1.* to < 8.1.29 (affected · semver)8.2.* to < 8.2.20 (affected · semver)8.3.* to < 8.3.8 (affected · semver)Default: affected php · cna
php php 8.1.0 to < 8.1.29 (affected · semver)Default: affected CISA-ADP · adp
php php 8.2.0 to < 8.2.20 (affected · semver)Default: affected CISA-ADP · adp
php php 8.3.0 to < 8.3.8 (affected · semver)Default: affected CISA-ADP · adp

Weaknesses

2
  • CWE-116 CWE-116 Improper Encoding or Escaping of Output (php · cna)
  • CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (php · cna)

References

6

Provider assertions

3

php · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
ca004d018c2ee708cabf0f99bbf0fd9db19d720b9c4f5eebd78dbfe2898ef4f7
Ingested
23 Sep 2026, 08:32:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected