CVE-2024-3096
published medium CVSS 3.1 · 6.5PHP function password_verify can erroneously return true when argument contains NUL
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHP Group | — | PHP8.1.* to < 8.1.28 · 8.2.* to < 8.2.18 · 8.3.* to < 8.3.5 · Other versions: affected | Affected | Not stated | php |
| php_group | — | php8.1.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| php_group | — | php8.2.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| php_group | — | php8.3.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.1-2024-005 | Fixed | Not stated | Amazon Linux assessment |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.2-2024-004 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-612 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-624 | Fixed | Not stated | Amazon Linux assessment |
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.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- php · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHP Group | PHP | 8.1.* to < 8.1.28 (affected · semver)8.2.* to < 8.2.18 (affected · semver)8.3.* to < 8.3.5 (affected · semver)Default: affected | php · cna |
| php_group | php | 8.1.0 (affected)Default: unknown | CISA-ADP · adp |
| php_group | php | 8.2.0 (affected)Default: unknown | CISA-ADP · adp |
| php_group | php | 8.3.0 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
6- http://www.openwall.com/lists/oss-security/2024/04/12/11
- https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr
- https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
- https://security.netapp.com/advisory/ntap-20240510-0010/
Provider assertions
3php · cna
PHP function password_verify can erroneously return true when argument contains NUL
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- df8c09d6df9b7f6e6dc7b645c7698e19f5a42c2381b3ddbff7a3dc95f5a9aa4f
- Ingested
- 23 Sep 2026, 08:25:33 UTC
- Source record
- Official CVE record