Skip to content
OpenAdvisories
Unscored CVE-2016-3191 EUVD-2016-4232GHSA-68wg-f3j9-hgmv

The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22 mishandles patterns contain…

Published Mar 17, 2016 · Updated Aug 5, 2024 · Assigned by debian

Description

The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22 mishandles patterns containing an (*ACCEPT) substring in conjunction with nested parentheses, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror, aka ZDI-CAN-3542.

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 14 pcre2 10.21-1 —
Debian 13 pcre2 10.21-1 —
Debian 12 pcre2 10.21-1 —
Debian 12 pcre3 2:8.38-2 —
Debian 6.0 pcre3 8.02-1.1+deb6u1 DLA-441-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS pcre3 1:8.31-2ubuntu2.2 USN-2943-1
ReleasePackageFixed inAdvisory
RHEL 7 pcre +3 8.32-15.el7_2.1 RHSA-2016:1025
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.4 pcre 8.38-r1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 pcre +3 8.32-15.el7_2.1 ELSA-2016-1025

Advisories 8

References