CVE-2025-58050 Details
Description
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.
A heap-buffer-overflow read vulnerability has been identified in the PCRE2 library, specifically in version 10.45. This vulnerability arises in the regular expression matching engine, within the handling of the '(*scs:...)' (Scan SubString) verb when used in conjunction with '(*ACCEPT)'. The issue is located in 'src/pcre2_match.c'. The flaw may lead to information disclosure, as the out-of-bounds data read during the 'memcmp' operation could affect the final match result in a way that is observable by the attacker.
Users can upgrade to PCRE2 version 10.46, which addresses the vulnerability by restoring the correct match boundaries after an 'ACCEPT' operation within a Scan SubString block.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254 | [email protected] | Patch |
| https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46 | [email protected] | Release Notes |
| https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pcre pcre2 | 10.45 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 9, 2025 | Initial Analysis | [email protected] |
| Aug 27, 2025 | CVE Modified | CISA-ADP |
| Aug 27, 2025 | New CVE Received | [email protected] |