Description
PHP 7.1.5 has an Out of bounds access in php_pcre_replace_impl via a crafted preg_replace call.
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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | php8.1 | 8.1.2-1ubuntu1 | — |
| Ubuntu 20.04 LTS | php7.4 | 7.4.3-4ubuntu2.10 | USN-5300-2 |
| Ubuntu 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.11 | USN-5300-2 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm3 | USN-5300-1 |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-php71-php +27 | 7.1.30-1.el7 | RHSA-2019:2519 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | php5 | 5.5.14-109.38.1 | SUSE-SU-2018:2682-1 |
| SLES 12 SP3 | php7 | 7.0.7-50.49.1 | SUSE-SU-2018:2640-1 |
| SLES 12 | php5 | 5.5.14-109.38.1 | SUSE-SU-2018:2682-1 |
| SLES 12 | php7 | 7.0.7-50.49.1 | SUSE-SU-2018:2640-1 |
| SLES 11 SP4 | php53 | 5.3.17-112.38.1 | SUSE-SU-2018:2681-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.38.1 | SUSE-SU-2018:2681-1 |
Advisories 6
- RHSA-2019:2519 Red Hat Security Advisory: rh-php71-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-5300-1 php7.0 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5300-2 php7.2, php7.4 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2018:2640-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2681-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2682-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026