CWE
116
Advisory Published
Updated

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

First published: Mon Apr 29 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

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 is the severity of CVE-2024-1874?

    CVE-2024-1874 has a critical severity level due to its potential for command injection vulnerabilities.

  • How do I fix CVE-2024-1874?

    To fix CVE-2024-1874, upgrade PHP to version 8.1.29 or later, or to version 8.2.20 or later.

  • What versions of PHP are affected by CVE-2024-1874?

    CVE-2024-1874 affects PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.5.

  • Can CVE-2024-1874 be exploited remotely?

    Yes, CVE-2024-1874 can be exploited remotely if an attacker can send crafted commands to the affected PHP code.

  • What is proc_open() in the context of CVE-2024-1874?

    In the context of CVE-2024-1874, proc_open() is a PHP function that creates a process based on command arguments which may lack sufficient escaping, leading to vulnerabilities.

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