CVE-2022-1587: Critical severity PCRE pcre2 vulnerability
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the getrecursedatalength() function of the pcre2jitcompile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
Other sources
An out-of-bounds read was discovered in PCRE version 10.39, affecting recursions in JIT-compiled regular expressions. The bug is present in the function "getrecursedatalength", declared in "pcre2jitcompile.c".
References:
https://github.com/PCRE2Project/pcre2/commit/03654e751e7f0700693526b67dfcadda6b42c9d0
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/pcre2to a version that resolves this vulnerability.Fixed in 10.40 - Upgrade
Upgrade
debian/pcre2to a version that resolves this vulnerability.Fixed in 10.42-1Fixed in 10.42-1+deb12u2Fixed in 10.46-1~deb13u2Fixed in 10.46-1~deb13u3Fixed in 10.48-3.1Fixed in 10.49-1 - Upgrade
Upgrade
alpine/pcre2to a version that resolves this vulnerability.Fixed in 10.36-r1 - Upgrade
Upgrade
alpine/pcre2to a version that resolves this vulnerability.Fixed in 10.40-r0 - Upgrade
Upgrade
ubuntu/pcre2to a version that resolves this vulnerability.Fixed in 10.31-2ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/pcre2to a version that resolves this vulnerability.Fixed in 10.34-7ubuntu0.1 - Upgrade
Upgrade
ubuntu/pcre2to a version that resolves this vulnerability.Fixed in 10.39-3ubuntu0.1 - Upgrade
Upgrade
debian/pcre2to a version that resolves this vulnerability.Fixed in 10.40-1
Event History
Frequently Asked Questions
What is CVE-2022-1587?
CVE-2022-1587 is an out-of-bounds read vulnerability in the PCRE2 library.
What is the severity of CVE-2022-1587?
CVE-2022-1587 has a severity score of 9.1 (critical).
Which software is affected by CVE-2022-1587?
The PCRE2 library with versions up to 10.40, Redhat Enterprise Linux 9.0, Fedora 35, and Fedora 36 are affected by CVE-2022-1587.
How does CVE-2022-1587 affect the software?
CVE-2022-1587 causes out-of-bounds read vulnerabilities in JIT-compiled regular expressions due to duplicate data transfers.
How can I fix CVE-2022-1587?
To fix CVE-2022-1587, update the affected software to a version that includes the patch provided by PCRE2.