CVE-2024-3096
PHP function password_verify can erroneously return true when argument contains NUL
6.5
MEDIUM
CVSS 3.1
EPSS 1.1%
Description
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.
How to fix CVE-2024-3096
To remediate CVE-2024-3096, upgrade the affected package to a fixed version below.
- —upgrade to 8.1.28 or later
- —upgrade to 8.1.28 or later
- —upgrade to 8.1.28 or later
- —upgrade to 7.4.33-1+deb11u5 or later
- —upgrade to 8.2.18-1~deb12u1 or later
Is CVE-2024-3096 being exploited?
Low — EPSS is 1.1%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 8.1.28, >= 8.2.0, < 8.2.18, >= 8.3.0, < 8.3.5
- from 0, < 8.1.28, >= 8.2.0, < 8.2.18, >= 8.3.0, < 8.3.5
- from 0, < 8.1.28, >= 8.2.0, < 8.2.18, >= 8.3.0, < 8.3.5
- from 0, < 7.4.33-1+deb11u5
- from 0, < 8.2.18-1~deb12u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
References (8)
- ADVISORYsecurity-tracker.debian.org/tracker/CVE-2024-3096
- WEBgithub.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr
- WEBlists.debian.org/debian-lts-announce/2024/05/msg00005.html
- WEBlists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/