CVE-2024-3096
published 2024-04-29CVE-2024-3096: 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…
PriorityP434medium6.5CVSS 3.1
AVNACLPRNUIRSUCHINAN
EPSS
1.48%
71.0th percentile
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
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | php7.4 | < php7.4 7.4.33-1+deb11u5 (bullseye) | php7.4 7.4.33-1+deb11u5 (bullseye) |
| debian | php8.2 | < php7.4 7.4.33-1+deb11u5 (bullseye) | php7.4 7.4.33-1+deb11u5 (bullseye) |
| msrc | azl3_php_8.1.22-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_php_8.3.4-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_php_8.1.22-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_php_8.1.28-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| php | php | >= 8.1.0 < 8.1.28 | 8.1.28 |
| php | php | >= 8.2.0 < 8.2.18 | 8.2.18 |
| php | php | >= 8.3.0 < 8.3.5 | 8.3.5 |
| php_group | php | >= 8.1.* < 8.1.28 | 8.1.28 |
| php_group | php | >= 8.2.* < 8.2.18 | 8.2.18 |
| php_group | php | >= 8.3.* < 8.3.5 | 8.3.5 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
osv6.5MEDIUM
vendor_debian6.5MEDIUM
vendor_msrc6.5MEDIUM
vendor_redhat6.5MEDIUM
vendor_ubuntu6.2MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2024-05-02·CVSS 6.2
CVE-2022-4900 [MEDIUM] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
USN-6757-1 fixed vulnerabilities in PHP. Unfortunately these fixes were incomplete for
Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 23.10. This update fixes the problem.
Original advisory details:
It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)
It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account tak
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2024-04-29·CVSS 6.2
CVE-2022-4900 [MEDIUM] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)
It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account takeover
attack. (CVE-2024-3096)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
php: password_verify can erroneously return true, opening ATO risk
vendor_redhat·2024-04-12·CVSS 6.5
CVE-2024-3096 [MEDIUM] CWE-626 php: password_verify can erroneously return true, opening ATO risk
php: password_verify can erroneously return true, opening ATO risk
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.
A null byte interaction error vulnerability was found in PHP. 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. If a user can create a password with a leading null byte (unlikely, but syntactically valid), an attacker could trivially compromise the victim's account by attempting to sign in with a blank string.
Statement: The identified issue with password_verify treating a n
Microsoft
PHP function password_verify can erroneously return true when argument contains NUL
vendor_msrc·2024-04-09·CVSS 6.5
CVE-2024-3096 [MEDIUM] CWE-20 PHP function password_verify can erroneously return true when argument contains NUL
PHP function password_verify can erroneously return true when argument contains NUL
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
php: php
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Debian
CVE-2024-3096: php7.4 - In PHP version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if...
vendor_debian·2024·CVSS 6.5
CVE-2024-3096 [MEDIUM] CVE-2024-3096: php7.4 - In PHP version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if...
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.
Scope: local
bullseye: resolved (fixed in 7.4.33-1+deb11u5)
OSV
php7.4, php8.1, php8.2 vulnerabilities
osv·2024-05-02·CVSS 5.5
CVE-2022-4900 [MEDIUM] php7.4, php8.1, php8.2 vulnerabilities
php7.4, php8.1, php8.2 vulnerabilities
USN-6757-1 fixed vulnerabilities in PHP. Unfortunately these fixes were incomplete for
Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 23.10. This update fixes the problem.
Original advisory details:
It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)
It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account takeover
attack. (CVE-2024-3096)
OSV
php7.0, php7.2, php7.4, php8.1 vulnerabilities
osv·2024-04-29·CVSS 5.5
CVE-2022-4900 [MEDIUM] php7.0, php7.2, php7.4, php8.1 vulnerabilities
php7.0, php7.2, php7.4, php8.1 vulnerabilities
It was discovered that PHP incorrectly handled PHP_CLI_SERVER_WORKERS variable.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. This issue only affected Ubuntu 20.04 LTS, and
Ubuntu 22.04 LTS. (CVE-2022-4900)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to cookie by pass.
(CVE-2024-2756)
It was discovered that PHP incorrectly handled some passwords.
An attacker could possibly use this issue to cause an account takeover
attack. (CVE-2024-3096)
OSV
CVE-2024-3096: In PHP version 8
osv·2024-04-29·CVSS 6.5
CVE-2024-3096 [MEDIUM] CVE-2024-3096: In PHP version 8
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://www.openwall.com/lists/oss-security/2024/04/12/11https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmrhttps://lists.debian.org/debian-lts-announce/2024/05/msg00005.htmlhttps://security.netapp.com/advisory/ntap-20240510-0010/http://www.openwall.com/lists/oss-security/2024/04/12/11https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmrhttps://lists.debian.org/debian-lts-announce/2024/05/msg00005.htmlhttps://lists.fedoraproject.org/archives/list/[email protected]/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/https://lists.fedoraproject.org/archives/list/[email protected]/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/https://security.netapp.com/advisory/ntap-20240510-0010/
2024-04-29
Published