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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | php8.2 | 8.2.26-1~deb12u1 | DSA-5819-1 |
| Debian 11 | php7.4 | 7.4.33-1+deb11u7 | DLA-3986-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm7 | USN-7153-1 |
| Ubuntu Pro 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm13 | USN-7153-1 |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | php8 +5 | 8.2.26-150600.3.9.1 | SUSE-SU-2024:4136-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | php81 | 8.1.31-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | php | 8.3.14-1 | — |
| Azure Linux 2 (CBL-Mariner) | php | 8.1.31-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 8
- WID-SEC-2024-3519 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- USN-7153-1 php7.0, php7.2 vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-7157-1 php7.4, php8.1, php8.3 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5819-1 php8.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3986-1 php7.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:4136-1 Security update for php8 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14521-1 php8-8.3.14-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- NCSC-2025-0123 Kwetsbaarheden verholpen in Oracle Database Producten NCSC-NL (Netherlands) · Apr 16, 2025