Skip to content
Noroxi
CVE-2016-3191· NVD / CVE Program· CNA 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 containi

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.

CriticalCVSS 9.8 · v3.0—No exploit Fix available
Published
Mar 17, 2016
Updated
Jun 16, 2026
EPSS
8.4% · 95th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

42

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
3 / 30 · 8.4%

Affected systems

VendorProduct
pcrepcre
pcrepcre2

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • pcre pcre8.00
  • pcre pcre8.01
  • pcre pcre8.02
  • pcre pcre8.10
  • pcre pcre8.11
  • pcre pcre8.12
  • pcre pcre8.13
  • pcre pcre8.20
  • pcre pcre8.21
  • pcre pcre8.30
  • pcre pcre8.31
  • pcre pcre8.32
  • pcre pcre8.33
  • pcre pcre8.34
  • pcre pcre8.35
  • pcre pcre8.36
  • pcre pcre8.37
  • pcre pcre8.38
  • pcre pcre2up to 10.21 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.4pcrebefore 8.38-r18.38-r1
Debian:12pcre2before 10.21-110.21-1
Debian:12pcre3before 2:8.38-22:8.38-2
Debian:6.0pcre3before 8.02-1.1+deb6u18.02-1.1+deb6u1
Red Hat:enterprise_linux:7::clientpcrebefore 0:8.32-15.el7_2.10:8.32-15.el7_2.1
Red Hat:enterprise_linux:7::clientpcre-debuginfobefore 0:8.32-15.el7_2.10:8.32-15.el7_2.1
Red Hat:enterprise_linux:7::clientpcre-develbefore 0:8.32-15.el7_2.10:8.32-15.el7_2.1
Red Hat:enterprise_linux:7::clientpcre-staticbefore 0:8.32-15.el7_2.10:8.32-15.el7_2.1
Red Hat:enterprise_linux:7::clientpcre-toolsbefore 0:8.32-15.el7_2.10:8.32-15.el7_2.1

Same product

pcre: all records

Other highest-scoring records for the same primary product.

  • CVE-2016-1283The 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
    41Plan
  • CVE-2015-8391The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote attackers to cause a deni
    41Plan
  • CVE-2015-5073Heap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote attackers to cause a denial
    38Monitor
  • CVE-2017-7246Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a
    32Monitor
  • CVE-2017-7245Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a
    32Monitor
  • CVE-2017-7186libpcre1 in PCRE 8.40 and libpcre2 in PCRE2 10.23 allow remote attackers to cause a denial of service (segmentation violation for read acces
    32Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:pcre8.38-r1 · Alpine:v3.4Package registry (OSV)
debian:pcre210.21-1 · Debian:12Package registry (OSV)
debian:pcre32:8.38-2 · Debian:12Package registry (OSV)
red hat:pcre0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:pcre-debuginfo0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:pcre-devel0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:pcre-static0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:pcre-tools0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records