Skip to content
OpenAdvisories
Unscored CVE-2015-8381 EUVD-2015-8263GHSA-wvfj-fw7x-gqpr

The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R…

Published Dec 2, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R')(\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ and /(?J:(?|(:(?|(?'R')(\z(?|(?'R')(\k'R')|((?'R')))k'R')|((?'R')))H'Ak'Rf)|s(?'R')))/ patterns, and related patterns with certain group references, 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-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
RHEL 2 rh-php56 +2 2.3-1.el6 RHSA-2016:2750
RHEL 2 rh-php56-php +27 5.6.25-1.el6 RHSA-2016:2750
RHEL 2 rh-php56-php-pear 1:1.9.5-4.el6 RHSA-2016:2750
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

Advisories 6

References