CVE-2015-8381 json
The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R…
published 2015-12-02 10 y ago modified 2026-06-17 4 mo ago also EUVD-2015-8263
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 5.3%
- EPSS 5.3% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R')(\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ and /(?J:(?|(:(?|(?'R')(\z(?|(?'R')(\k'R')|((?'R')))k'R')|((?'R')))H'Ak'Rf)|s(?'R')))/ patterns, and related patterns with certain group references, which allows 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.
Patch / fix
- pcre3 Debian 12 2:8.38-1
debian advisories DEBIAN-CVE-2015-8381
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el6
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el7
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
red hat advisories RHSA-2016:2750RHSA-2016:1132
- pcre SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for SAP 12 +12 more 8.39-7.1
- pcre SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +10 more 8.39-5.1
suse advisories SUSE-SU-2016:3161-1SUSE-SU-2016:2971-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-8381 updated cvss 6.8
pcre: Buffer overflow caused by duplicate named references (8.38/36)
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +34 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +32 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) rh-mariadb100-mariadb 10.0.25-4.el6, rh-mariadb100-mariadb-test 10.0.25-4.el6, rh-mariadb100-mariadb-bench 10.0.25-4.el6, rh-mariadb100-mariadb-common 10.0.25-4.el6, rh-mariadb100-mariadb-config 10.0.25-4.el6, rh-mariadb100-mariadb-errmsg 10.0.25-4.el6, +2 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +34 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) rh-mariadb100-mariadb 10.0.25-4.el7, rh-mariadb100-mariadb-test 10.0.25-4.el7, rh-mariadb100-mariadb-bench 10.0.25-4.el7, rh-mariadb100-mariadb-common 10.0.25-4.el7, rh-mariadb100-mariadb-config 10.0.25-4.el7, rh-mariadb100-mariadb-errmsg 10.0.25-4.el7, +2 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +32 morefixed: vendor fix RHSA-2016:1132
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 morefixed: vendor fix RHSA-2016:2750
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +34 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +32 morefixed: vendor fix RHSA-2016:1132
-
Red Hat Directory Server 8 pcre Red Hat Enterprise Linux 5 pcre Red Hat Enterprise Linux 6 pcre, glib2 Red Hat Enterprise Linux 7 pcre, glib2, glib2-fam, pcre-tools, glib2-tests, virtuoso-opensource, +1 more Red Hat JBoss Enterprise Web Server 1 httpd Red Hat JBoss Enterprise Web Server 2 jbcs-httpd24, jbcs-httpd24-runtimenot affected: vulnerable code not present
+2 more productsfewer
Red Hat JBoss Enterprise Web Server 3 pcre Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, php54-php-cli, php54-php-dba, +53 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
5.29% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.exim.org https://bugs.exim.org/show_bug.cgi?id=1667 referenced PoC, tagged "exploit" by a source, unverified
- bugs.exim.org https://bugs.exim.org/show_bug.cgi?id=1672 referenced PoC, tagged "exploit" by a source, unverified
- vcs.pcre.org http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV: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
-
bugs.exim.org
/show_bug.cgi?id=1667
exploit
-
bugs.exim.org
/show_bug.cgi?id=1672
exploit
-
vcs.pcre.org
/pcre/code/trunk/ChangeLog?view=markup
exploit, release-notes
-
access.redhat.com
/errata/RHSA-2016:1132
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2750.html
vendor-advisory
-
security.gentoo.org
/glsa/201607-02
vendor-advisory
-
openwall.com
/lists/oss-security/2015/11/29/1
mailing-list, third-party-advisory
-
securityfocus.com
/bid/76187
vdb-entry, third-party-advisory
-
bto.bluecoat.com
/security-advisory/sa128
third-party-advisory
Sources
- CVE List CVE-2015-8381
- NVD CVE-2015-8381
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.