Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pcre | Perl Compatible Regular Expression Library | <= 8.37 |
Related Weaknesses (CWE)
References
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markupExploitRelease Notes
- http://www.openwall.com/lists/oss-security/2015/11/29/1Mailing ListThird Party Advisory
- http://www.securityfocus.com/bid/76187Third Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2016:1132
- https://bto.bluecoat.com/security-advisory/sa128Third Party Advisory
- https://bugs.exim.org/show_bug.cgi?id=1667Exploit
- https://bugs.exim.org/show_bug.cgi?id=1672Exploit
- https://security.gentoo.org/glsa/201607-02
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markupExploitRelease Notes
- http://www.openwall.com/lists/oss-security/2015/11/29/1Mailing ListThird Party Advisory
- http://www.securityfocus.com/bid/76187Third Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2016:1132
- https://bto.bluecoat.com/security-advisory/sa128Third Party Advisory
FAQ
What is CVE-2015-8381?
CVE-2015-8381 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2015-8381?
CVE-2015-8381 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2015-8381?
Check the references section above for vendor advisories and patch information. Affected products include: Pcre Perl Compatible Regular Expression Library.