ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2024-3096

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSphp5
All versions, no fix listed
Ubuntu:Pro:16.04:LTSphp7.0
All versions before 7.0.33-0ubuntu0.16.04.16+esm9 (fixed in 7.0.33-0ubuntu0.16.04.16+esm9)
Ubuntu:Pro:18.04:LTSphp7.2
All versions before 7.2.24-0ubuntu0.18.04.17+esm3 (fixed in 7.2.24-0ubuntu0.18.04.17+esm3)
Ubuntu:20.04:LTSphp7.4
All versions before 7.4.3-4ubuntu2.22 (fixed in 7.4.3-4ubuntu2.22)
Ubuntu:22.04:LTSphp8.1
All versions before 8.1.2-1ubuntu2.17 (fixed in 8.1.2-1ubuntu2.17)
Ubuntu:24.04:LTSphp8.3
All versions before 8.3.6-0maysync1 (fixed in 8.3.6-0maysync1)

References