CVE-2022-1587CWE-125

An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file

published May 16, 2022

CVSS
—
EPSS
3%
Percentile
86.2
In the wild
Unconfirmed
What it is

⚠️ An out-of-bounds read vulnerability lurks inside the PCRE2 library, potentially letting attackers peek where they shouldn’t! Think of this like a restaurant that accidentally lets diners see the chef’s secret recipes lying on a table—once you catch a glimpse, you can exploit it! If the recipe is mismanaged during the crazy dinner rush (or JIT compilation), it becomes a buffet for mistakes. This vulnerability could lead to unexpected behavior or crashes in applications that rely on the PCRE2 library for regex processing. While it hasn't been known to be exploited yet, the potential for data leaks could lead to some absolutely devastating consequences if an attacker finds a way to leverage it.

Put simply

Think of this like a restaurant that accidentally lets diners see the chef’s secret recipes lying on a table—once you catch a glimpse, you can exploit it! If the recipe is mismanaged during the crazy dinner rush (or JIT compilation), it becomes a buffet for mistakes. The out-of-bounds read in the get_recurse_data_length() function occurs due to mishandled recursive calls in JIT-compiled regex, specifically with duplicate data transfers. This could allow unintended memory access, leading to unpredictable behavior.

What to do

This vulnerability could lead to unexpected behavior or crashes in applications that rely on the PCRE2 library for regex processing. While it hasn't been known to be exploited yet, the potential for data leaks could lead to some absolutely devastating consequences if an attacker finds a way to leverage it. To remediate this, ensure that you’re using an updated version of the PCRE2 library that has addressed this vulnerability. It's also a good practice to review your regex implementations for proper handling to mitigate any risks. Stay vigilant! You’ve got this! Stay proactive, and you’ll keep your code secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02767 · 86.2th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2022-05-16T00:00Z
EPSS history
Timeline
  • 16 MAY 00:00Z
    An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file
    cvelistv5