Skip to content
OpenAdvisories
Unscored SUSE-SU-2016:3161-1 25 CVEs

Security update for pcre

Published Dec 15, 2016 · Updated Feb 4, 2026

Summary

This update for pcre to version 8.39 (bsc#972127) fixes several issues.

If you use pcre extensively please be aware that this is an update to a new version. Please
make sure that your software works with the updated version.

This version fixes a number of vulnerabilities that affect pcre
and applications using the libary when accepting untrusted input
as regular expressions or as part thereof. Remote attackers could
have caused the application to crash, disclose information or
potentially execute arbitrary code. These security issues were fixed:

- CVE-2014-8964: Heap-based buffer overflow in PCRE allowed remote attackers to cause a denial of service (crash) or have other unspecified impact via a crafted regular expression, related to an assertion that allows zero repeats (bsc#906574).
- CVE-2015-2325: Heap buffer overflow in compile_branch() (bsc#924960).
- CVE-2015-3210: Heap buffer overflow in pcre_compile2() / compile_regex() (bsc#933288)
- CVE-2015-3217: PCRE Library Call Stack Overflow Vulnerability in match() (bsc#933878).
- CVE-2015-5073: Library Heap Overflow Vulnerability in find_fixedlength() (bsc#936227).
- bsc#942865: heap overflow in compile_regex()
- CVE-2015-8380: The pcre_exec function in pcre_exec.c mishandled a // pattern with a \01 string, which allowed 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 (bsc#957566).
- CVE-2015-2327: PCRE mishandled certain patterns with internal recursive back references, which allowed remote attackers to cause a denial of service (segmentation fault) or possibly have unspecified other impact via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror (bsc#957567).
- bsc#957598: Various security issues
- CVE-2015-8381: Heap Overflow in compile_regex() (bsc#957598).
- CVE-2015-8382: Regular Expression Uninitialized Pointer Information Disclosure Vulnerability (ZDI-CAN-2547)(bsc#957598).
- CVE-2015-8383: Buffer overflow caused by repeated conditional group(bsc#957598).
- CVE-2015-8384: Buffer overflow caused by recursive back reference by name within certain group(bsc#957598).
- CVE-2015-8385: Buffer overflow caused by forward reference by name to certain group(bsc#957598).
- CVE-2015-8386: Buffer overflow caused by lookbehind assertion(bsc#957598).
- CVE-2015-8387: Integer overflow in subroutine calls(bsc#957598).
- CVE-2015-8388: Buffer overflow caused by certain patterns with an unmatched closing parenthesis(bsc#957598).
- CVE-2015-8389: Infinite recursion in JIT compiler when processing certain patterns(bsc#957598).
- CVE-2015-8390: Reading from uninitialized memory when processing certain patterns(bsc#957598).
- CVE-2015-8391: Some pathological patterns causes pcre_compile() to run for a very long time(bsc#957598).
- CVE-2015-8392: Buffer overflow caused by certain patterns with duplicated named groups(bsc#957598).
- CVE-2015-8393: Information leak when running pcgrep -q on crafted binary(bsc#957598).
- CVE-2015-8394: Integer overflow caused by missing check for certain conditions(bsc#957598).
- CVE-2015-8395: Buffer overflow caused by certain references(bsc#957598).
- CVE-2015-2328: PCRE mishandled the /((?(R)a|(?1)))+/ pattern and related patterns with certain recursion, which allowed remote attackers to cause a denial of service (segmentation fault) or possibly have unspecified other impact via a crafted regular expression (bsc#957600).
- CVE-2016-1283: The pcre_compile2 function in pcre_compile.c in PCRE mishandled certain patterns with named subgroups, which allowed remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted regular expression (bsc#960837).
- CVE-2016-3191: The compile_branch function in pcre_compile.c in pcre2_compile.c mishandled patterns containing an (*ACCEPT) substring in conjunction with nested parentheses, which allowed remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted regular expression (bsc#971741).

These non-security issues were fixed:
- JIT compiler improvements
- performance improvements
- The Unicode data tables have been updated to Unicode 7.0.0.

Fixed packages 15

ReleasePackageFixed in
SUSE · SLES 12 SP1 Linux Enterprise Desktop 12 SP1 pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise Desktop 12 SP2 pcre 8.39-7.1
SUSE · SLES 12 SP1 Linux Enterprise High Availability Extension 12 SP1 pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise High Availability Extension 12 SP2 pcre 8.39-7.1
SUSE · SLES 12 SP1 Linux Enterprise Server 12 SP1 pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2 pcre 8.39-7.1
SUSE · SLES 12 Linux Enterprise Server 12-LTSS pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise Server for Raspberry Pi 12 SP2 pcre 8.39-7.1
SUSE · SLES for SAP 12 Linux Enterprise Server for SAP Applications 12 pcre 8.39-7.1
SUSE · SLES for SAP 12 SP1 Linux Enterprise Server for SAP Applications 12 SP1 pcre 8.39-7.1
SUSE · SLES for SAP 12 SP2 Linux Enterprise Server for SAP Applications 12 SP2 pcre 8.39-7.1
SUSE · SLES 12 SP1 Linux Enterprise Software Development Kit 12 SP1 pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise Software Development Kit 12 SP2 pcre 8.39-7.1
SUSE · SLES 12 SP1 Linux Enterprise Workstation Extension 12 SP1 pcre 8.39-7.1
SUSE · SLES 12 SP2 Linux Enterprise Workstation Extension 12 SP2 pcre 8.39-7.1

Vulnerabilities 25

  • Unscored —

    Heap-based buffer overflow in PCRE 8.36 and earlier allows remote attackers to cause a denial of service (crash) or hav…

  • Unscored —

    The compile_branch function in PCRE before 8.37 allows context-dependent attackers to compile incorrect code, cause a d…

  • Unscored —

    PCRE before 8.36 mishandles the /(((a\2)|(a*)\g<-1>))*/ pattern and related patterns with certain internal recursive ba…

  • Unscored —

    PCRE before 8.36 mishandles the /((?(R)a|(?1)))+/ pattern and related patterns with certain recursion, which allows rem…

  • Unscored —

    Heap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code …

  • Unscored —

    PCRE 7.8 and 8.32 through 8.37, and PCRE2 10.10 mishandle group empty matches, which might allow remote attackers to ca…

  • Unscored —

    Heap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote attacke…

  • Unscored —

    The pcre_exec function in pcre_exec.c in PCRE before 8.38 mishandles a // pattern with a \01 string, which allows remot…

  • Unscored —

    The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles t…

  • Unscored —

    The match function in pcre_exec.c in PCRE before 8.37 mishandles the /(?:((abcd))|(((?:(?:(?:(?:abc|(?:abcdef))))b)abcd…

  • Unscored —

    PCRE before 8.38 mishandles certain repeated conditional groups, which allows remote attackers to cause a denial of ser…

  • Unscored —

    PCRE before 8.38 mishandles the /(?J)(?'d'(?'d'\g{d}))/ pattern and related patterns with certain recursive back refere…

  • Unscored —

    PCRE before 8.38 mishandles the /(?|(\k'Pm')|(?'Pm'))/ pattern and related patterns with certain forward references, wh…

  • Unscored —

    PCRE before 8.38 mishandles the interaction of lookbehind assertions and mutually recursive subpatterns, which allows r…

  • Unscored —

    PCRE before 8.38 mishandles (?123) subroutine calls and related subroutine calls, which allows remote attackers to caus…

  • Unscored —

    PCRE before 8.38 mishandles the /(?=di(?<=(?1))|(?=(.))))/ pattern and related patterns with an unmatched closing paren…

  • Unscored —

    PCRE before 8.38 mishandles the /(?:|a|){100}x/ pattern and related patterns, which allows remote attackers to cause a …

  • Unscored —

    PCRE before 8.38 mishandles the [: and \\ substrings in character classes, which allows remote attackers to cause a den…

  • Unscored —

    The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote atta…

  • Unscored —

    PCRE before 8.38 mishandles certain instances of the (?| substring, which allows remote attackers to cause a denial of …

  • Unscored —

    pcregrep in PCRE before 8.38 mishandles the -q option for binary files, which might allow remote attackers to obtain se…

  • Unscored —

    PCRE before 8.38 mishandles the (?(<digits>) and (?(R<digits>) conditions, which allows remote attackers to cause a den…

  • Unscored —

    PCRE before 8.38 mishandles certain references, which allows remote attackers to cause a denial of service or possibly …

  • Unscored —

    The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((…

  • Unscored —

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

References

  • report
    https://bugzilla.suse.com/906574
  • report
    https://bugzilla.suse.com/924960
  • report
    https://bugzilla.suse.com/933288
  • report
    https://bugzilla.suse.com/933878
  • report
    https://bugzilla.suse.com/936227
  • report
    https://bugzilla.suse.com/942865
  • report
    https://bugzilla.suse.com/957566
  • report
    https://bugzilla.suse.com/957567
  • report
    https://bugzilla.suse.com/957598
  • report
    https://bugzilla.suse.com/957600
  • report
    https://bugzilla.suse.com/960837
  • report
    https://bugzilla.suse.com/971741
  • report
    https://bugzilla.suse.com/972127
  • web
    https://www.suse.com/security/cve/CVE-2014-8964
  • web
    https://www.suse.com/security/cve/CVE-2015-2325
  • web
    https://www.suse.com/security/cve/CVE-2015-2327
  • web
    https://www.suse.com/security/cve/CVE-2015-2328
  • web
    https://www.suse.com/security/cve/CVE-2015-3210
  • web
    https://www.suse.com/security/cve/CVE-2015-3217
  • web
    https://www.suse.com/security/cve/CVE-2015-5073
  • web
    https://www.suse.com/security/cve/CVE-2015-8380
  • web
    https://www.suse.com/security/cve/CVE-2015-8381
  • web
    https://www.suse.com/security/cve/CVE-2015-8382
  • web
    https://www.suse.com/security/cve/CVE-2015-8383
  • web
    https://www.suse.com/security/cve/CVE-2015-8384
  • web
    https://www.suse.com/security/cve/CVE-2015-8385
  • web
    https://www.suse.com/security/cve/CVE-2015-8386
  • web
    https://www.suse.com/security/cve/CVE-2015-8387
  • web
    https://www.suse.com/security/cve/CVE-2015-8388
  • web
    https://www.suse.com/security/cve/CVE-2015-8389
  • web
    https://www.suse.com/security/cve/CVE-2015-8390
  • web
    https://www.suse.com/security/cve/CVE-2015-8391
  • web
    https://www.suse.com/security/cve/CVE-2015-8392
  • web
    https://www.suse.com/security/cve/CVE-2015-8393
  • web
    https://www.suse.com/security/cve/CVE-2015-8394
  • web
    https://www.suse.com/security/cve/CVE-2015-8395
  • web
    https://www.suse.com/security/cve/CVE-2016-1283
  • web
    https://www.suse.com/security/cve/CVE-2016-3191