2084AI Security Observatory

Infrastructure vulnerabilities

PHP

The PHP Group · 66 CVE · Critical 17 · High 22 · In CISA KEV 5

0102030Before 2023: 2 critical, 0 otherEarlier2023: 1 critical, 6 other20232024: 5 critical, 12 other20242025: 2 critical, 11 other20252026: 7 critical, 20 other2026
High and belowCriticalTracked CVEs by year published

Check your version

e.g. 8.2.12 — run php -v

All tracked CVEs · 66

  • CVE-2024-2408MED 5.92024-06-10EPSS 1%

    The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: [link removed] (rsa_pkcs1_implicit_…

    • ≥ 8.3.0, < 8.3.8Fixed in 8.3.8
    • ≥ 8.2.0, < 8.2.20Fixed in 8.2.20
    • ≥ 8.1.0, < 8.1.29Fixed in 8.1.29
  • CVE-2024-5585HIGH 8.82024-06-10EPSS 29%

    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…

    • ≥ 8.3.0, < 8.3.8Fixed in 8.3.8
    • ≥ 8.2.0, < 8.2.20Fixed in 8.2.20
    • ≥ 8.1.0, < 8.1.29Fixed in 8.1.29
  • CVE-2024-5458MED 5.32024-06-10EPSS 12%

    In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + p…

    • ≥ 8.3.0, < 8.3.8Fixed in 8.3.8
    • ≥ 8.2.0, < 8.2.20Fixed in 8.2.20
    • ≥ 8.1.0, < 8.1.29Fixed in 8.1.29
    • ≥ 8.0.2, ≤ 8.0.30Affected up to 8.0.30 — see vendor advisory
    • ≥ 7.4.15, ≤ 7.4.33Affected up to 7.4.33 — see vendor advisory
    • ≥ 7.3.27, ≤ 7.3.33Affected up to 7.3.33 — see vendor advisory
  • CVE-2024-3096MED 6.52024-04-29EPSS 1%

    In PHP version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if a password stored with password_hash() starts with a null byte (\x00), testing a blank string as the password via password_verify() will incorrectly return true.

    • ≥ 8.3.0, < 8.3.5Fixed in 8.3.5
    • ≥ 8.2.0, < 8.2.18Fixed in 8.2.18
    • ≥ 8.1.0, < 8.1.28Fixed in 8.1.28
  • CVE-2024-2757HIGH 7.52024-04-29EPSS 2%

    In PHP 8.3.* before 8.3.5, function mb_encode_mimeheader() runs endlessly for some inputs that contain long strings of non-space characters followed by a space. This could lead to a potential DoS attack if a hostile user sends data to an application that uses this function.

    • ≥ 8.3.0, < 8.3.5Fixed in 8.3.5
  • CVE-2024-1874CRIT 9.42024-04-29EPSS 33%

    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 exe…

    • ≥ 8.3.0, < 8.3.5Fixed in 8.3.5
    • ≥ 8.2.0, < 8.2.18Fixed in 8.2.18
    • ≥ 8.1.0, < 8.1.28Fixed in 8.1.28
  • CVE-2024-3566CRIT 9.82024-04-11EPSS 7%

    A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly depend on the CreateProcess function when the specific conditions are satisfied.

    • ≥ 8.3.0, < 8.3.6Fixed in 8.3.6
    • ≥ 8.2.0, < 8.2.18Fixed in 8.2.18
    • < 8.1.28Fixed in 8.1.28
  • CVE-2022-4900MED 5.52023-11-03EPSS 0%

    A vulnerability was found in PHP where setting the environment variable PHP_CLI_SERVER_WORKERS to a large value leads to a heap buffer overflow.

    • < 8.0.22Fixed in 8.0.22
  • CVE-2023-3824CRIT 9.82023-08-11EPSS 22%

    In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.

    • ≥ 8.2.0, < 8.2.9Fixed in 8.2.9
    • ≥ 8.1.0, < 8.1.22Fixed in 8.1.22
    • ≥ 8.0.0, < 8.0.30Fixed in 8.0.30
  • CVE-2023-3823HIGH 7.52023-08-11EPSS 2%

    In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly change…

    • ≥ 8.2.0, < 8.2.9Fixed in 8.2.9
    • ≥ 8.1.0, < 8.1.22Fixed in 8.1.22
    • ≥ 8.0.0, < 8.0.30Fixed in 8.0.30
  • CVE-2023-3247MED 4.32023-07-22EPSS 1%

    In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could…

    • ≥ 8.2.0, < 8.2.7Fixed in 8.2.7
    • ≥ 8.1.0, < 8.1.20Fixed in 8.1.20
    • ≥ 8.0.0, < 8.0.29Fixed in 8.0.29
  • CVE-2023-0567MED 6.22023-03-01EPSS 1%

    In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as…

    • ≥ 8.2.0, < 8.2.3Fixed in 8.2.3
    • ≥ 8.1.0, < 8.1.16Fixed in 8.1.16
    • ≥ 8.0.0, < 8.0.28Fixed in 8.0.28
  • CVE-2023-0662HIGH 7.52023-02-16EPSS 1%

    In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or d…

    • ≥ 8.2.0, < 8.2.3Fixed in 8.2.3
    • ≥ 8.1.0, < 8.1.16Fixed in 8.1.16
    • ≥ 8.0.0, < 8.0.28Fixed in 8.0.28
  • CVE-2023-0568HIGH 8.12023-02-16EPSS 1%

    In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten…

    • ≥ 8.2.0, < 8.2.3Fixed in 8.2.3
    • ≥ 8.1.0, < 8.1.16Fixed in 8.1.16
    • ≥ 8.0.0, < 8.0.28Fixed in 8.0.28
  • CVE-2019-11043CRIT 9.8KEV2019-10-28EPSS 100%

    In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it is possible to cause FPM module to write past allocated buffers into the space reserved for FCGI protocol data, thus opening the possibility of remote code exe…

    • ≥ 7.3.0, < 7.3.11Fixed in 7.3.11
    • ≥ 7.2.0, < 7.2.24Fixed in 7.2.24
    • ≥ 7.1.0, < 7.1.33Fixed in 7.1.33
  • CVE-2012-1823CRIT 9.8KEV2012-05-11EPSS 100%

    sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options…

    • ≥ 5.4.0, < 5.4.2Fixed in 5.4.2
    • < 5.3.12Fixed in 5.3.12