Skip to content
OpenAdvisories
Medium USN-6757-1 3 CVEs

php7.0, php7.2, php7.4, php8.1 vulnerabilities

Published Apr 29, 2024 · Updated Jun 25, 2026

Summary

It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)

It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)

It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account takeover
attack. (CVE-2024-3096)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · 20.04 LTS 20.04:LTS php7.4 7.4.3-4ubuntu2.21
Ubuntu · 22.04 LTS 22.04:LTS php8.1 8.1.2-1ubuntu2.16
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS php7.0 7.0.33-0ubuntu0.16.04.16+esm9
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS php7.2 7.2.24-0ubuntu0.18.04.17+esm3

Vulnerabilities 3

  • Medium 6.5
    CVE-2024-2756 EPSS 38%

    __Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix

    Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.

  • Medium 6.5

    PHP function password_verify can erroneously return true when argument contains NUL

    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.

  • Medium 6.2

    Potential buffer overflow in php_cli_server_startup_workers

    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.

References

  • report
    https://ubuntu.com/security/CVE-2022-4900
  • report
    https://ubuntu.com/security/CVE-2024-2756
  • report
    https://ubuntu.com/security/CVE-2024-3096