Description
PCRE before 8.38 mishandles the (?(<digits>) and (?(R<digits>) conditions, which allows remote attackers to cause a denial of service (integer overflow) or possibly have unspecified other impact via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror.
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.38-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | pcre3 | 1:8.31-2ubuntu2.2 | USN-2943-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | pcre | 8.39-5.1 | SUSE-SU-2016:3161-1, SUSE-SU-2016:2971-1 |
| SLES 12 SP1 | pcre | 8.39-5.1 | SUSE-SU-2016:3161-1, SUSE-SU-2016:2971-1 |
| SLES 12 | pcre | 8.39-7.1 | SUSE-SU-2016:3161-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP2 | pcre | 8.39-5.1 | SUSE-SU-2016:3161-1, SUSE-SU-2016:2971-1 |
| SLES for SAP 12 SP1 | pcre | 8.39-5.1 | SUSE-SU-2016:3161-1, SUSE-SU-2016:2971-1 |
| SLES for SAP 12 | pcre | 8.39-7.1 | SUSE-SU-2016:3161-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | glib2 +5 | 2.56.1-9.amzn2.0.6 | ALAS2-2023-2107 |
| Amazon Linux 2 | pcre +3 | 8.32-17.amzn2.0.3 | ALAS2-2023-2082 |
Advisories 6
- WID-SEC-2023-1392 PCRE (Perl Compatible Regular Expressions): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2026
- USN-2943-1 pcre3 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2016:3161-1 Security update for pcre SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2971-1 Security update for pcre SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2023-2107 Moderate: glib2 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 29, 2023
- ALAS2-2023-2082 Moderate: pcre security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 7, 2023
References
- [oss-security] 20151128 Re: Heap Overflow in PCRE mailing-list
- 82990 vdb-entry
- FEDORA-2015-eb896290d3 vendor-advisory
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://bto.bluecoat.com/security-advisory/sa128
- http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup
- GLSA-201607-02 vendor-advisory
- https://security.netapp.com/advisory/ntap-20230216-0002/