PT-2024-3031 · Php+10 · Php+10

Eric Stern

+1

·

Published

2024-04-11

·

Updated

2025-08-11

·

CVE-2024-3096

CVSS v2.0

9.4

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:N
Name of the Vulnerable Software and Affected Versions PHP versions 8.1.* through 8.1.27 PHP versions 8.2.* through 8.2.17 PHP versions 8.3.* through 8.3.4
Description The issue is related to the password verification process 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. This flaw can allow a remote attacker to bypass the authentication process and gain unauthorized access to a web application.
Recommendations For PHP versions 8.1.* through 8.1.27, update to version 8.1.28 or later. For PHP versions 8.2.* through 8.2.17, update to version 8.2.18 or later. For PHP versions 8.3.* through 8.3.4, update to version 8.3.5 or later. As a temporary workaround, consider restricting the use of password verify() function until a patch is available. Avoid using passwords that start with a null byte (x00) in the affected PHP versions.

Fix

Improper Authentication

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:10949
ALSA-2024:10950
ALSA-2024:10951
ALSA-2024:10952
ALT-PU-2024-13731
ALT-PU-2024-6442
ALT-PU-2024-6444
ALT-PU-2024-6496
ALT-PU-2024-6501
ALT-PU-2024-6566
ALT-PU-2024-6670
AZL-40061
AZL-40068
BDU:2024-03215
BIT-LIBPHP-2024-3096
BIT-PHP-2024-3096
BIT-PHP-MIN-2024-3096
CESA-2024_10951
CESA-2024_10952
CVE-2024-3096
DLA-3810-1
DSA-5660-1
DSA-5661-1
GHSA-H746-CJRR-WFMR
INFSA-2024_10949
INFSA-2024_10950
INFSA-2024_10951
INFSA-2024_10952
INFSA-2025_7315
MGASA-2024-0132
OESA-2024-1592
OESA-2024-1596
OESA-2024-1656
OESA-2024-1668
OESA-2024-1669
OPENSUSE-SU-2024:13867-1
OPENSUSE-SU-2024_1444-1
OPENSUSE-SU-2024_1446-1
RHSA-2024:10949
RHSA-2024:10950
RHSA-2024:10951
RHSA-2024:10952
RHSA-2024_10949
RHSA-2024_10950
RHSA-2024_10951
RHSA-2024_10952
RHSA-2025:7315
RHSA-2025_7315
RLSA-2024:10949
RLSA-2024:10950
RLSA-2024:10951
RLSA-2024:10952
SUSE-SU-2024:1444-1
SUSE-SU-2024:1445-1
SUSE-SU-2024:1446-1
SUSE-SU-2024:2037-1
USN-6757-1
USN-6757-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Php
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu