Heap-based buffer overflow in PCRE - CVE-2015-5073

 

Heap-based buffer overflow in PCRE - CVE-2015-5073

Published: December 13, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32412
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-5073
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38. A remote attacker can use a crafted regular expression with an excess closing parenthesis. to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PCRE
Amazon Linux AMI
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server from RHUI
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - Extended Update Support
Fedora
pcre (Alpine package)
glib2
pcre
pcre (Red Hat package)

How to mitigate CVE-2015-5073

Update to version 8.38.

PCRE - update to 8.38
pcre (Alpine package) - update to 8.35-r2
glib2 - update to 2.36.3-5.26
pcre - update to 8.21-7.9
pcre (Red Hat package) - update to 8.32-15.el7_2.1
pcre - addressed in versions 8.35-12.fc21, 8.37-2.fc22

External References

Related Security Bulletins