VDB

CVE-2024-3096

CVE-2024-3096 PUBLISHED CVSS 6.5 MEDIUM

PHP function password_verify can erroneously return true when argument contains NUL

Reported by php · Published April 29, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.2-processAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-ffiAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-commonAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-mbstringAmazon Linux8.2.18-1.amzn2023.0.1

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*
amazon:2023php8.2-process0
amazon:2023php8.2-ffi0
amazon:2023php8.2-common0
amazon:2023php8.2-mbstring0
php_groupphp8.2.0, 8.1.0, 8.3.0
amazon:2023php8.2-xml0
amazon:2023php8.2-pgsql0
amazon:2023php8.1-pspell0
amazon:2023php8.1-dba0
amazon:2023php8.2-odbc0
amazon:2023php8.1-intl0
amazon:2023php8.2-ldap0
amazon:2023php8.2-mysqlnd0
amazon:2023php8.1-cli0
amazon:2023php8.1-xml0
amazon:2023php8.1-gd0
amazon:2023php8.1-enchant0
amazon:2023php8.1-dbg0
amazon:2023php8.1-snmp0

…and 43 more

Timeline

  • Apr 11, 2024 CVE Published
  • Apr 29, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
  • Oct 23, 2026 Distribution Patch (7 in total, the first dated here)
  • Oct 23, 2026 Security Advisory (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-3096
vulnetix vdb fixes CVE-2024-3096

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-3096/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›