CVE-2024-3096

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.

Affected Software

VendorProductVersion RangeStatus
PHP GroupPHP8.1.* < 8.1.28affected
PHP GroupPHP8.2.* < 8.2.18affected
PHP GroupPHP8.3.* < 8.3.5affected

Weaknesses

  • CWE-20: CWE-20 Improper Input Validation

Workarounds

Pre-filter potential password strings to ensure they do not contain NUL bytes.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

CVE Program Container

Additional References

References