Vulnerabilities · 2015 · Pcre
CVE-2015-8381
Pcre Perl Compatible Regular Expression Library vulnerability
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.
Affected products
Perl Compatible Regular Expression Library. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pcre Perl Compatible Regular Expression Library runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.openwall.com/lists/oss-security/2015/11/29/1 · Third Party Advisory
- www.securityfocus.com/bid/76187 · Third Party Advisory
- bto.bluecoat.com/security-advisory/sa128 · Third Party Advisory
- vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup · Exploit
- bugs.exim.org/show_bug.cgi?id=1667 · Exploit
- bugs.exim.org/show_bug.cgi?id=1672 · Exploit
- rhn.redhat.com/errata/RHSA-2016-2750.html
- access.redhat.com/errata/RHSA-2016:1132
- nvd.nist.gov/vuln/detail/CVE-2015-8381
- cve.org/CVERecord?id=CVE-2015-8381
More vulnerabilities in Pcre products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.