Skip to content
Fencer Vulns
critical 9.1

CVE-2025-58050 json

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

published 2025-08-27 14 mo ago modified 2026-07-25 3 mo ago also EUVD-2025-25947 , GHSA-c2gv-xgf5-5cc2 , JLSEC-2026-60 , PYSEC-2025-259

cvss
9.1
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 58%
public exploits
0
none known

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.

Patch / fix

  • julia PCRE2_jll 10.46.0+0
  • pcre pcre2 10.46
  • pcre2 Debian 13 10.46-1~deb13u1
  • pcre2 Debian 14 10.46-1

debian advisories DEBIAN-CVE-2025-58050

  • pcre2 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 10.45-160000.3.1

suse advisories SUSE-SU-2026:21094-1SUSE-SU-2026:21172-1

  • pcre2 openSUSE Leap 16.0 10.45-160000.3.1
  • pcre2 openSUSE Tumbleweed 10.46-1.1

opensuse advisories openSUSE-SU-2026:20512-1openSUSE-SU-2025:15501-1

  • pcre2 Alpine 3.24, Alpine 3.23, Alpine 3.22 10.46-r0

alpine advisories ALPINE-CVE-2025-58050

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-58050 updated cvss 6.5

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

  • Red Hat Enterprise Linux 7 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32 Red Hat Enterprise Linux 8 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32 Red Hat Enterprise Linux 9 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32, pcre2-syntax, mingw32-pcre2, +1 more Red Hat Enterprise Linux 10 pcre2, mingw-pcre2, mingw32-pcre2, mingw64-pcre2 Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
14 mo ago

Exploit prediction

0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 6.9 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
CNA 4.0 6.9 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
OSV 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia PCRE2_jll
>=10.45.0+0, <10.46.0+0
10.46.0+0
pypi pcre2
<=10.45
no fix listed

Affected products

  • PCRE2Project pcre2

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.