PCRE up to 8.37 pcre_compile.c compile_regex Regex Pattern memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
9.4$0-$5k0.00

Summaryinfo

A vulnerability marked as critical has been reported in PCRE up to 8.37. Affected by this issue is the function compile_regex of the file pcre_compile.c. Performing a manipulation with the input /(?J:(?|(:(?|(?'R')(\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ as part of Regex Pattern results in memory corruption. This vulnerability is reported as CVE-2015-8381. The attack is possible to be carried out remotely. No exploit exists. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability was found in PCRE up to 8.37 (Programming Tool Software). It has been classified as very critical. This affects the function compile_regex of the file pcre_compile.c. The manipulation with the input value /(?J:(?|(:(?|(?'R')(\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ leads to a memory corruption vulnerability. CWE is classifying the issue as CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was disclosed 12/02/2015 by Wen Guanxing (AdLab) with Venustech ADLAB (Website). The advisory is shared at bugs.exim.org. This vulnerability is uniquely identified as CVE-2015-8381 since 12/01/2015. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 06/28/2022).

The vulnerability scanner Nessus provides a plugin with the ID 91983 (GLSA-201607-02 : libpcre: Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 196440 (Ubuntu Security Notification for pcre3 vulnerabilities (USN-2943-1)).

Upgrading to version 8.38 eliminates this vulnerability. A possible mitigation has been published 8 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (91983), SecurityFocus (BID 76187†) and Vulnerability Center (SBV-54791†). The entries VDB-75660, VDB-79370, VDB-79371 and VDB-79376 are pretty similar. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.8
VulDB Meta Temp Score: 9.4

VulDB Base Score: 9.8
VulDB Temp Score: 9.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 91983
Nessus Name: GLSA-201607-02 : libpcre: Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 841810
OpenVAS Name: Ubuntu Update for pcre3 USN-2943-1
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
Exposure Time: 🔍

Upgrade: PCRE 8.38

Timelineinfo

08/05/2015 🔍
09/02/2015 +28 days 🔍
12/01/2015 +90 days 🔍
12/01/2015 +0 days 🔍
12/02/2015 +1 days 🔍
12/03/2015 +1 days 🔍
12/04/2015 +1 days 🔍
07/09/2016 +218 days 🔍
07/11/2016 +2 days 🔍
06/28/2022 +2178 days 🔍

Sourcesinfo

Advisory: RHSA-2016:1132
Researcher: Wen Guanxing (AdLab)
Organization: Venustech ADLAB
Status: Not defined
Confirmation: 🔍

CVE: CVE-2015-8381 (🔍)
GCVE (CVE): GCVE-0-2015-8381
GCVE (VulDB): GCVE-100-79377
SecurityFocus: 76187 - PCRE Regular Expression Handling Heap Buffer Overflow Vulnerability
Vulnerability Center: 54791 - PCRE before 8.38 and 10.0 – 10.19 Remote DoS and Unspecified Other Impact via a Crafted Regular Expression, High

See also: 🔍

Entryinfo

Created: 12/03/2015 09:43
Updated: 06/28/2022 10:01
Changes: 12/03/2015 09:43 (51), 05/11/2018 09:34 (31), 06/28/2022 10:01 (2)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!