PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PCRE2Project | pcre2 | = 10.45 | — | No fix listed | CNA |
- pcre2 VendorPCRE2Project Affected = 10.45 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58050
References
More Pcre2 vulnerabilities
- TI-2022-19872 Integer overflow vulnerability in pcre2test before 10.41 allows attackers to cause a… CVSS 3.1HIGH 7.5
- TI-2026-60391 Integer overflow in PCRE2 CVSS 3.1HIGH 7.4
- TI-2026-60393 Out-of-bounds read in PCRE2 CVSS 3.1MEDIUM 6.5
- TI-2015-02839 Heap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote… CVSS 3.1CRITICAL 9.8
- TI-2016-02677 The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c… CVSS 3.0CRITICAL 9.8
- TI-2017-06297 pcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of service… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2025-58050 · CVE Program
- CVE-2025-58050 · NVD
- FIRST EPSS
- CVE-2025-58050 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences