9.8crit

CVE-2016-3191

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 10 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
8.4%
percentile 95%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

8.43% probability of exploitation in the next 30 days, higher than 95% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

  • securityfocus.com /bid/84810 · vdb-entry, x_refsource_BID, x_transferred
  • vcs.pcre.org /pcre2?view=revision&revision=489 · x_refsource_CONFIRM, x_transferred
  • access.redhat.com /errata/RHSA-2016:1132 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • oracle.com /technetwork/topics/security/linuxbulletinapr2016-2952096.html · x_refsource_CONFIRM, x_transferred
  • www-01.ibm.com /support/docview.wss?uid=isg3T1023886 · x_refsource_CONFIRM, x_transferred
  • rhn.redhat.com /errata/RHSA-2016-1025.html · vendor-advisory, x_refsource_REDHAT, x_transferred
  • bugs.debian.org /815921 · x_refsource_CONFIRM, x_transferred
  • bugs.debian.org /815920 · x_refsource_CONFIRM, x_transferred
  • bugzilla.redhat.com /show_bug.cgi?id=1311503 · x_refsource_CONFIRM, x_transferred
  • bugs.exim.org /show_bug.cgi?id=1791 · x_refsource_CONFIRM, x_transferred
  • tenable.com /security/tns-2016-18 · x_refsource_CONFIRM, x_transferred
  • bto.bluecoat.com /security-advisory/sa128 · x_refsource_CONFIRM, x_transferred
  • vcs.pcre.org /pcre?view=revision&revision=1631 · x_refsource_CONFIRM, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.