# CVE-2024-3096: PHP function password_verify can erroneously return true when argument contains NUL

- Severity: Medium 6.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-29T03:42:04.093Z
- Modified: 2026-09-08T08:48:18.285Z
- Also known as: BIT-LIBPHP-2024-3096, BIT-PHP-2024-3096, BIT-PHP-MIN-2024-3096, GHSA-h746-cjrr-wfmr
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.28; from 8.2.* before 8.2.18; from 8.3.* before 8.3.5
- php_group php: 8.1.0; 8.2.0; 8.3.0
- php php: from 8.1.0 before 8.1.28; from 8.2.0 before 8.2.18; from 8.3.0 before 8.3.5
- debian debian_linux: 10.0
- libphp (Bitnami): before 8.1.28; from 8.2.0 before 8.2.18; from 8.3.0 before 8.3.5
- php (Bitnami): before 8.1.28; from 8.2.0 before 8.2.18; from 8.3.0 before 8.3.5
- php-min (Bitnami): before 8.1.28; from 8.2.0 before 8.2.18; from 8.3.0 before 8.3.5

## Every score

- php: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr> (exploit, advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/04/12/11> (discussion, mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html> (discussion, mailing-list)
- <https://security.netapp.com/advisory/ntap-20240510-0010/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3096> (web)

## Sources

- CVE List: [CVE-2024-3096](https://www.cve.org/CVERecord?id=CVE-2024-3096), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-3096](https://nvd.nist.gov/vuln/detail/CVE-2024-3096), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2024-3096](https://osv.dev/vulnerability/BIT-LIBPHP-2024-3096), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2024-3096](https://osv.dev/vulnerability/BIT-PHP-2024-3096), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2024-3096](https://osv.dev/vulnerability/BIT-PHP-MIN-2024-3096), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-3096 · Whole record: https://cve.day/CVE-2024-3096.json · Rebuilt by cve.day 2026-11-25T22:58:39.664Z
