{"schema_version":"1.9.0","id":"CVE-2024-3096","published":"2024-04-29T03:42:04.093Z","modified":"2026-08-12T03:51:33.655655350Z","aliases":["BIT-libphp-2024-3096","BIT-php-2024-3096","BIT-php-min-2024-3096","GHSA-h746-cjrr-wfmr"],"related":["ALSA-2024:10949","ALSA-2024:10950","ALSA-2024:10951","ALSA-2024:10952","SUSE-SU-2024:1444-1","SUSE-SU-2024:1445-1","SUSE-SU-2024:1446-1","SUSE-SU-2024:2037-1","openSUSE-SU-2024:13867-1"],"summary":"PHP function password_verify can erroneously return true when argument contains NUL","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":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"},{"fixed":"9119509142637005d079bcc2815ee43ec1c79524"},{"introduced":"70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"},{"fixed":"d94fdf582e1fe4a1d85ded00a4c8b9935486c51d"},{"introduced":"d26068059e83fe40de3430a512471d194119bee0"},{"fixed":"9a9c7197c4774c80f622222b3dfa874e6dc44f67"}],"database_specific":{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.1.0"},{"fixed":"8.1.28"},{"introduced":"8.2.0"},{"fixed":"8.2.18"},{"introduced":"8.3.0"},{"fixed":"8.3.5"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3096.json"}}],"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/04/12/11"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3096.json"},{"type":"ADVISORY","url":"https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3096"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240510-0010/"}],"database_specific":{"cna_assigner":"php","cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3096.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}