PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS
· CVE-2025-58050 · VuXML entry
[email protected] reports: 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 …
Affected versions
- pcre2 = 10.45
By system
1 still vulnerable, 1 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| FreeBSD | devel/pcre2 | 10.49 | fixed | (346 days after) |
| OpenBSD | devel/pcre2 | 10.48 | out of range, by version | |
| NetBSD | devel/pcre2 | 10.49 | not listed | |
| MidnightBSD | devel/pcre2 | 10.48 | out of range, by version | |
| DragonFly | devel/pcre2 | 10.45 | vulnerable since 2025-09-20 |