8.8
CWE
116 78
EPSS
0.438%
Advisory Published
CVE Published
Updated

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

First published: Thu Jun 06 2024(Updated: )

Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585)

Credit: security@php.net

Affected SoftwareAffected VersionHow to fix
PHP<8.2.20
8.2.20
PHP<8.1.29
8.1.29
PHP>=8.1.0<8.1.29
PHP>=8.2.0<8.2.20
PHP>=8.3.0<8.3.8
Fedora=40

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What are the affected versions for CVE-2024-5585?

    CVE-2024-5585 affects PHP versions 8.1.0 to 8.1.28, 8.2.0 to 8.2.19, and 8.3.0 to 8.3.7.

  • What is the severity of CVE-2024-5585?

    CVE-2024-5585 has not been officially assigned a severity rating, but it represents a critical command execution vulnerability.

  • How do I fix CVE-2024-5585?

    To fix CVE-2024-5585, upgrade PHP to versions 8.1.29, 8.2.20, or 8.3.8 or later.

  • What is the nature of the vulnerability in CVE-2024-5585?

    CVE-2024-5585 allows for a bypass of previous fixes if command names include trailing spaces when using proc_open().

  • Is there a workaround for CVE-2024-5585?

    There is no specific workaround for CVE-2024-5585; upgrading to a fixed PHP version is the recommended solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203