CVE-2025-58050
PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.9
PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
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.
- Record
CVE-2025-58050- CVSS 4.0
- 6.9 Medium
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 - Weakness
- CWE-125, CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2025-25947
6.9
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.
- Record
EUVD-2025-25947- CVSS 4.0
- 6.9 Medium
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 - Updated
- 2026-11-02
NVD
6.9
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.
- Record
CVE-2025-58050- CVSS 4.0
- 6.9 Medium
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 - CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-122, CWE-125, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2025-58050
9.1
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.
- Record
ALPINE-CVE-2025-58050- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2025-58050
9.1
- Record
BELL-CVE-2025-58050- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSV
6.9
PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
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.
- Record
CVE-2025-58050- CVSS 4.0
- 6.9 Medium
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 - Weakness
- CWE-122, CWE-125
- Updated
- 2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2025-58050
9.1
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.
- Record
DEBIAN-CVE-2025-58050- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-60
6.9
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.
- Record
JLSEC-2026-60- CVSS 4.0
- 6.9 Medium
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 - CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2025-259
9.1
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.
- Record
PYSEC-2025-259- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVROOT-OS-UBUNTU-2204-CVE-2025-58050
9.1
CVE-2025-58050 in pcre2 - Patched by Root
Root has patched CVE-2025-58050 in the pcre2 package for Root:Ubuntu:22.04. Multiple fixed versions available.
- Record
ROOT-OS-UBUNTU-2204-CVE-2025-58050- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-04
OSVUBUNTU-CVE-2025-58050
6.9
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.
- Record
UBUNTU-CVE-2025-58050- CVSS 4.0
- 6.9 Medium
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 - CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15501-1 No score
libpcre2-16-0-10.46-1.1 on GA media
These are all security issues fixed in the libpcre2-16-0-10.46-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15501-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:20512-1 No score
Security update for pcre2
This update for pcre2 fixes the following issue:
- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS (bsc#1248842).
- Record
openSUSE-SU-2026:20512-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:21094-1 No score
Security update for pcre2
This update for pcre2 fixes the following issue:
- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS (bsc#1248842).
- Record
SUSE-SU-2026:21094-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:21172-1 No score
Security update for pcre2
This update for pcre2 fixes the following issue:
- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS (bsc#1248842).
- Record
SUSE-SU-2026:21172-1- Updated
- 2026-11-02
OSVUSN-7777-1 No score
pcre2 vulnerability
It was discovered that PCRE2 incorrectly handled the Scan SubString verb. An attacker could possibly use this issue to cause applications using PCRE2 to expose sensitive information.
- Record
USN-7777-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pcre2Alpine:v3.22 |
before 10.46-r0 | 10.46-r0 |
pcre2Alpine:v3.23 |
before 10.46-r0 | 10.46-r0 |
pcre2Alpine:v3.24 |
before 10.46-r0 | 10.46-r0 |
pcre2Alpaquita:stream |
10.45-r0 up to 10.46-r0 | 10.46-r0 |
pcre2BellSoft Hardened Containers:stream |
10.45-r0 up to 10.46-r0 | 10.46-r0 |
pcre2Debian:13 |
before 10.46-1~deb13u1, plus listed versions 10.45-1 |
10.46-1~deb13u1 |
pcre2Debian:14 |
before 10.46-1, plus listed versions 10.45-110.46-1~deb13u1 |
10.46-1 |
PCRE2_jllJulia |
10.45.0+0 up to 10.46.0+0 | 10.46.0+0 |
pcre2PyPI |
through 10.45, plus listed versions 0.1.00.2.00.3.00.4.00.5.0 Show 5 moreShow less0.5.10.5.20.5.30.6.00.7.0 |
None known |
pcre2Root:Ubuntu:22.04 |
before 10.39-3ubuntu0.2.aikido.6 | 10.39-3ubuntu0.2.aikido.6 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rootio-pcre2Root:Ubuntu:22.04 |
before 10.39-3ubuntu0.2.aikido.6 | 10.39-3ubuntu0.2.aikido.6 |
pcre2SUSE:Linux Micro 6.2 |
before 10.45-160000.3.1 | 10.45-160000.3.1 |
pcre2SUSE:Linux Enterprise Server 16.0 |
before 10.45-160000.3.1 | 10.45-160000.3.1 |
pcre2SUSE:Linux Enterprise Server for SAP applications 16.0 |
before 10.45-160000.3.1 | 10.45-160000.3.1 |
pcre2Ubuntu:25.04 |
before 10.45-1ubuntu0.1, plus listed versions 10.42-4ubuntu310.45-1 |
10.45-1ubuntu0.1 |
pcre2openSUSE:Tumbleweed |
before 10.46-1.1 | 10.46-1.1 |
pcre2openSUSE:Leap 16.0 |
before 10.45-160000.3.1 | 10.45-160000.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-58050 is a medium vulnerability (CVSS 6.9) in Pcre Pcre2, published August 27, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.86%, the 58th percentile. Fixed in pcre2 10.46-r0.
References
github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2
github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254
github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46
security.alpinelinux.org/vuln/CVE-2025-58050
docs.bell-sw.com/security/cves/CVE-2025-58050
github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58050.json
Show 9 moreShow less
nvd.nist.gov/vuln/detail/CVE-2025-58050
security-tracker.debian.org/tracker/CVE-2025-58050
suse.com/support/update/announcement/2026/suse-su-202621094-1
bugzilla.suse.com/1248842
suse.com/security/cve/CVE-2025-58050
suse.com/support/update/announcement/2026/suse-su-202621172-1
ubuntu.com/security/CVE-2025-58050
cve.org/CVERecord?id=CVE-2025-58050
ubuntu.com/security/notices/USN-7777-1