Skip to main content
← All vulnerabilities
CVE-2024-3096

PHP function password_verify can erroneously return true when argument contains NUL

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.1.28, 8.2.18, 8.3.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • PHP Group PHP

    fixed in 8.1.28; fixed in 8.2.18; fixed in 8.3.5

References 4

GitHub · php/php-src

openwall.com

lists.debian.org

security.netapp.com