First published: Wed Dec 02 2015(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/pcre | <8.38 | 8.38 |
PCRE (Perl Compatible Regular Expressions) | <=8.37 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2015-8381 has been classified as a medium severity vulnerability.
To fix CVE-2015-8381, upgrade PCRE to version 8.38 or later.
CVE-2015-8381 affects PCRE versions before 8.38 and PCRE2 versions before 10.2x.
CVE-2015-8381 can potentially be exploited through crafted regular expressions that trigger a denial of service.
CVE-2015-8381 is not classified as a remote vulnerability, but it can be exploited through local applications that use vulnerable regex patterns.