CVEfocus › CVE database › CVE-2016-3191

CVE-2016-3191

CVSS 9.8 CriticalEPSS 8.4% (higher than 95% of CVEs)Published 2016-03-17Updated 2024-08-05Assigner: debian

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.

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
19Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04pcre3Not affected
vulnerable_code_not_present
Ubuntu 16.04pcre2Not affected
vulnerable_code_not_present
Ubuntu 16.04pcre3Not affected
vulnerable_code_not_present
Ubuntu 14.04pcre3Fixed1:8.31-2ubuntu2.2UBUNTU-CVE-2016-3191
Debian 14pcre2Fixed10.21-1DEBIAN-CVE-2016-3191
Debian 13pcre2Fixed10.21-1DEBIAN-CVE-2016-3191
Debian 12pcre2Fixed10.21-1DEBIAN-CVE-2016-3191
Debian 12pcre3Fixed2:8.38-2DEBIAN-CVE-2016-3191
Red Hat Enterprise Linux 7glib2Not affected
Red Hat Enterprise Linux 7glib2-develNot affected
Red Hat Enterprise Linux 7glib2-docNot affected
Red Hat Enterprise Linux 7glib2-famNot affected
Red Hat Enterprise Linux 7glib2-staticNot affected
Red Hat Enterprise Linux 7glib2-testsNot affected
Red Hat Enterprise Linux 7pcreFixed0:8.32-15.el7_2.1RHSA-2016:1025
Red Hat Enterprise Linux 7pcre-develFixed0:8.32-15.el7_2.1RHSA-2016:1025
Red Hat Enterprise Linux 7pcre-staticFixed0:8.32-15.el7_2.1RHSA-2016:1025
Red Hat Enterprise Linux 7pcre-toolsFixed0:8.32-15.el7_2.1RHSA-2016:1025
Red Hat Enterprise Linux 7virtuoso-opensourceNot affected
Red Hat Enterprise Linux 7virtuoso-opensource-utilsNot affected
Red Hat Enterprise Linux 6glib2Not affected
Red Hat Enterprise Linux 6glib2-develNot affected
Red Hat Enterprise Linux 6glib2-docNot affected
Red Hat Enterprise Linux 6glib2-staticNot affected
Red Hat Enterprise Linux 6pcreNot affected
Red Hat Enterprise Linux 6pcre-develNot affected
Red Hat Enterprise Linux 6pcre-staticNot affected
Red Hat Enterprise Linux 5pcreNot affected
Alpine Linux 3.4pcreFixed8.38-r1ALPINE-CVE-2016-3191

What the vendor says

As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.