Skip to content
OpenAdvisories
Unscored CVE-2016-1283 EUVD-2016-2382GHSA-3v53-2g4c-6vpg

The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?…

Published Jan 3, 2016 · Updated Aug 5, 2024 · Assigned by mitre

Description

The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'R'\){99|(:(?|(?'R')(\k'R')|((?'R')))H'R'R)(H'R))))))/ pattern and related patterns with named subgroups, which allows remote attackers to cause a denial of service (heap-based buffer 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.

ReleasePackageFixed inAdvisory
Debian 12 pcre3 2:8.38-3.1 —
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS pcre3 1:8.31-2ubuntu2.2 USN-2943-1
ReleasePackageFixed inAdvisory
RHEL 2 rh-mariadb100-mariadb +8 1:10.0.25-4.el6 RHSA-2016:1132
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Alpine v3.7 php7 7.1.11-r0 —
Alpine v3.5 php5 5.6.32-r0 —
Alpine v3.5 php7 7.0.25-r0 —
Alpine v3.4 pcre 8.38-r1 —

Advisories 5

References