Buffer overflow in Pcre Pcre2
CVE-2025-58050
The PCRE2 library is a set of C functions that implement regular expression pattern matching. In version 10.45, a heap-buffer-overflow read vulnerability exists in the PCRE2 regular expression matching engine, specifically within the handling of the (*scs:...) (Scan SubString) verb when combined with (*ACCEPT) in src/pcre2_match.c. This vulnerability may potentially lead to information disclosure if the out-of-bounds data read during the memcmp affects the final match result in a way observable by the attacker. This issue has been resolved in version 10.46.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS: 0.008 (56.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 56th percentile — 56.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.008 · change: 0.000
Affected products
- Pcre Pcre2 — versions 10.45
- Pcre2project Pcre2 — versions = 10.45
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2 (Exploit, Vendor Advisory)
- github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254 (Patch)
- github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46 (Release Notes)
Frequently asked questions
- What is CVE-2025-58050?
- CVE-2025-58050 is a critical-severity vulnerability in Pcre Pcre2, classified under Heap-based Buffer Overflow. CVSS score: 9.1/10. Published 2025-08-27.
- How severe is CVE-2025-58050?
- Critical severity. CVSS v3 base score is 9.1 out of 10.
- Is CVE-2025-58050 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.