CVE-2024-1874

Source
https://cve.org/CVERecord?id=CVE-2024-1874
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1874.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-1874
Aliases
Downstream
Related
Published
2024-04-29T04:15:07.580Z
Modified
2026-04-02T09:54:17.563673Z
Severity
  • 9.4 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "versions": [
        {
            "introduced": "8.1.0"
        },
        {
            "fixed": "8.1.28"
        },
        {
            "introduced": "8.2.0"
        },
        {
            "fixed": "8.2.18"
        },
        {
            "introduced": "8.3.0"
        },
        {
            "fixed": "8.3.5"
        }
    ]
}

Affected versions

php-8.*
php-8.1.0
php-8.2.0
php-8.3.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1874.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "39"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "40"
            }
        ]
    }
]