{"id":"CVE-2025-58050","published":"2025-08-27T18:47:35Z","modified":"2025-08-27T19:14:38Z","title":"PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS","vendor":"PCRE2Project","product":"pcre2","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00996,"percentile":0.6156,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254","tags":["x_refsource_MISC"]},{"url":"https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":12.31},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"pcre2project","affectedVersions":[{"vendor":"PCRE2Project","product":"pcre2","versions":["= 10.45"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-27T19:14:21.101932Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pcre2","vulnerableRanges":["<=10.45"],"patched":[],"from":["PYSEC-2025-259"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-25947","exploited":false,"provenance":"source"}}