BSD Ports

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

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.

SystemPortVersionStateFixed
FreeBSDdevel/pcre210.49 fixed (346 days after)
OpenBSDdevel/pcre210.48 out of range, by version
NetBSDdevel/pcre210.49 not listed
MidnightBSDdevel/pcre210.48 out of range, by version
DragonFlydevel/pcre210.45 vulnerable since 2025-09-20