{"id":"CVE-2024-3096","published":"2024-04-29T03:42:04Z","modified":"2025-11-04T17:19:57Z","title":"PHP function password_verify can erroneously return true when argument contains NUL","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0148,"percentile":0.74589,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/12/11","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240510-0010/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/","tags":[]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":14.92},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 8.1.*, < 8.1.28",">= 8.2.*, < 8.2.18",">= 8.3.*, < 8.3.5"]}],"workarounds":{"items":["Pre-filter potential password strings to ensure they do not contain NUL bytes."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-52","name":"Embedding NULL Bytes"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-04-29T15:14:15.199723Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-31701","exploited":false,"provenance":"source"}}