CWE
20
Advisory Published
CVE Published
Updated

CVE-2024-3096: PHP function password_verify can erroneously return true when argument contains NUL

First published: Thu Apr 11 2024(Updated: )

Fixed bug GHSA-h746-cjrr-wfmr (password_verify can erroneously return true, opening ATO risk). (CVE-2024-3096)

Credit: security@php.net security@php.net

Affected SoftwareAffected VersionHow to fix
debian/php7.4
7.4.33-1+deb11u5
debian/php8.2
8.2.20-1~deb12u1
8.2.23-1
redhat/php<8.1.28
8.1.28
redhat/php<8.2.18
8.2.18
redhat/php<8.3.6
8.3.6
PHP<8.1.28
8.1.28

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-3096?

    CVE-2024-3096 has a moderate severity level due to the potential for unauthorized access if exploited.

  • How do I fix CVE-2024-3096?

    To fix CVE-2024-3096, update to the recommended versions of PHP: 7.4.33-1+deb11u5, 8.2.20-1~deb12u1, 8.2.23, or 8.1.28.

  • What does CVE-2024-3096 affect?

    CVE-2024-3096 affects the PHP password_verify function, particularly when handling passwords with null bytes.

  • What issues can arise from CVE-2024-3096?

    CVE-2024-3096 can lead to an authorization token (ATO) risk if blank strings are incorrectly accepted as valid passwords.

  • Which PHP versions are vulnerable to CVE-2024-3096?

    The vulnerable PHP versions include 7.4, 8.1.x, and 8.2.x prior to their respective patched versions.

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