CVE-2025-58050CWE-122CWE-125

PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS

Medium · published August 27, 2025

CVSS v4.0
6.9
EPSS
1%
Percentile
56.1
In the wild
Unconfirmed
What it is

⚠️ A sneaky heap-buffer overflow is hiding in the PCRE2 library, which could let attackers peek at sensitive data! 🚨 Think of this vulnerability like a restaurant menu that accidentally lists secret ingredients. If a chef misreads a recipe due to a glitch, they might spoil a dish by revealing a surprise flavor that shouldn’t be there at all! This vulnerability could allow an attacker to read out-of-bounds data, potentially leading to sensitive information disclosure. While it’s not a guaranteed breach, the risk of unintended leaks is enough to raise eyebrows.

Put simply

Think of this vulnerability like a restaurant menu that accidentally lists secret ingredients. If a chef misreads a recipe due to a glitch, they might spoil a dish by revealing a surprise flavor that shouldn’t be there at all! The issue arises in version 10.45 of the PCRE2 library, specifically in how the (*scs:...) verb is handled alongside (*ACCEPT). An attacker might exploit this mismanagement during the regular expression matching process.

What to do

This vulnerability could allow an attacker to read out-of-bounds data, potentially leading to sensitive information disclosure. While it’s not a guaranteed breach, the risk of unintended leaks is enough to raise eyebrows. Upgrade to version 10.46 of the PCRE2 library immediately to fix this issue. If you’re using this library in your applications, audit your code to ensure you’re on the latest version, and consider running tests to verify regex behavior. You've got this! Just follow the steps, and you'll have your app secured in no time! 🛡️

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L
EPSS
0.00800 · 56.1th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-125 · Out-of-bounds Read
Published
2025-08-27T18:47Z
EPSS history
Timeline
  • 27 AUG 18:47Z
    PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
    cvelistv5