CVE-2024-3096

Source
https://cve.org/CVERecord?id=CVE-2024-3096
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-3096.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-3096
Aliases
Downstream
Related
Published
2024-04-29T03:42:04.093Z
Modified
2026-06-18T03:55:32.193688440Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
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 passwordhash() starts with a null byte (\x00), testing a blank string as the password via passwordverify() will incorrectly return true.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3096.json",
    "cna_assigner": "php",
    "cwe_ids": [
        "CWE-20"
    ]
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "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"
        }
    ],
    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-3096.json"