Skip to content
OpenAdvisories

Description

In PHP versions 8.1.* before 8.1.31, 8.2.* before 8.2.26, 8.3.* before 8.3.14, uncontrolled long string inputs to ldap_escape() function on 32-bit systems can cause an integer overflow, resulting in an out-of-bounds write.

Affected products

VendorProductAffectedFixed
PHP Group PHP 8.1.* – < 8.1.31, 8.2.* – < 8.2.26, 8.3.* – < 8.3.14 8.1.31

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php8.2 8.2.26-1~deb12u1 DSA-5819-1
Debian 11 php7.4 7.4.33-1+deb11u7 DLA-3986-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS php8.3 8.3.6-0ubuntu0.24.04.3 USN-7157-1
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.20 USN-7157-1
Ubuntu 20.04 LTS php7.4 7.4.3-4ubuntu2.26 USN-7157-2, USN-7157-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS php7.2 No fix yet —
Ubuntu Pro 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.16+esm14 USN-7157-3
Ubuntu Pro 14.04 LTS php5 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 php8 +5 8.2.26-150600.3.9.1 SUSE-SU-2024:4136-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php8 8.3.14-1.1 openSUSE-SU-2024:14521-1
openSUSE Leap 15.6 php8 +5 8.2.26-150600.3.9.1 SUSE-SU-2024:4136-1
ReleasePackageFixed inAdvisory
Alpine v3.24 php83 8.3.14-r0 —
Alpine v3.23 php83 8.3.14-r0 —
Alpine v3.22 php83 8.3.14-r0 —
Alpine v3.21 php83 8.3.14-r0 —
Alpine v3.20 php83 8.3.14-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 php81 8.1.31-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 php8.1 +26 8.1.31-1.amzn2023.0.1 ALAS2023-2025-845
Amazon Linux 2023 php8.2 +27 8.2.27-1.amzn2023.0.1 ALAS2023-2025-872
Amazon Linux 2023 php8.3 +28 8.3.16-1.amzn2023.0.1 ALAS2023-2025-873

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 php 8.3.14-1 —
Azure Linux 2 (CBL-Mariner) php 8.1.31-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling php-8.1 8.1.31-r0 —
Wolfi rolling php-8.2 8.2.26-r0 —
Wolfi rolling php-8.3 8.3.14-r0 —

Advisories 11

References