Description
The compile_bracket_matchingpath function in pcre_jit_compile.c in PCRE through 8.x before revision 1680 (e.g., the PHP 7.1.1 bundled version) allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted regular expression.
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 | pcre3 | 2:8.39-2.1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | pcre3 | 2:8.38-3.1ubuntu0.1~esm2 | USN-5665-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP5 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP4 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP4 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP3 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP3 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES 12 SP2 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES 12 SP2 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP5 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP4 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP4 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP3 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SLES for SAP 12 SP3 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 9 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 9 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud Crowbar 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 9 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 9 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE OpenStack Cloud 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
| SUSE HPE Helion OpenStack 8 | pcre | 8.45-8.7.1 | SUSE-SU-2021:3652-1 |
| SUSE HPE Helion OpenStack 8 | selinux-policy | 20140730-36.5.2 | SUSE-SU-2021:3652-1 |
Advisories 2
- USN-5665-1 pcre3 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- SUSE-SU-2021:3652-1 Security update for pcre SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch
- GLSA-201706-11 vendor-advisory
- 1037850 vdb-entry
- 96295 vdb-entry
- RHSA-2018:2486 vendor-advisory
- https://bugs.exim.org/show_bug.cgi?id=2035
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list