# CVE-2025-58050: PCRE2: heap-buffer-overflow read in match\_ref due to missing boundary restoration in SCS

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-27 · Modified: 2025-08-27
- Aliases: ALPINE-CVE-2025-58050, SUSE-SU-2026:21094-1, SUSE-SU-2026:21172-1, PYSEC-2025-259, GHSA-c2gv-xgf5-5cc2, UBUNTU-CVE-2025-58050, USN-7777-1, DEBIAN-CVE-2025-58050, openSUSE-SU-2025:15501-1, openSUSE-SU-2026:20512-1
- Record: https://cvemate.com/vulnerability/CVE-2025-58050 · JSON: https://cvemate.com/vulnerability/CVE-2025-58050/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.982%, percentile 63.462%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine pcre2 (Alpine Linux): \< 10.46-r0
- debian pcre2 (Debian): \< 10.46-1~deb13u1 \| \< 10.46-1
- ubuntu pcre2 (Ubuntu): \< 10.45-1ubuntu0.1
- pcre pcre2: 10.45
- pcre2project pcre2: = 10.45
- PyPI pcre2 (PyPI): ≤ 10.45
- opensuse pcre2&distro=openSUSE Leap 16.0 (openSUSE): \< 10.45-160000.3.1
- opensuse pcre2&distro=openSUSE Tumbleweed (openSUSE): \< 10.46-1.1
- suse pcre2&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 10.45-160000.3.1
- suse pcre2&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 10.45-160000.3.1
- suse pcre2&distro=SUSE Linux Micro 6.2 (SUSE Linux Enterprise): \< 10.45-160000.3.1

## References

- <https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2>
- <https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254>
- <https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46>
- <https://security.alpinelinux.org/vuln/CVE-2025-58050>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202621094-1/>
- <https://bugzilla.suse.com/1248842>
- <https://www.suse.com/security/cve/CVE-2025-58050>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202621172-1/>
- <https://ubuntu.com/security/CVE-2025-58050>
- <https://www.cve.org/CVERecord?id=CVE-2025-58050>
- <https://ubuntu.com/security/notices/USN-7777-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-58050>

---

Data as of 2026-12-05T13:06:17.499Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
