{"id":"CVE-2025-58050","aliases":["ALPINE-CVE-2025-58050","BELL-CVE-2025-58050","DEBIAN-CVE-2025-58050","EUVD-2025-25947","GHSA-c2gv-xgf5-5cc2","JLSEC-2026-60","PYSEC-2025-259","ROOT-OS-UBUNTU-2204-CVE-2025-58050","SUSE-SU-2026:21094-1","SUSE-SU-2026:21172-1","UBUNTU-CVE-2025-58050","USN-7777-1","openSUSE-SU-2025:15501-1","openSUSE-SU-2026:20512-1"],"status":"published","title":"PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS","description":"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.","severity":{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00862,"percentile":0.59038,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-125","CWE-787"],"published":"2025-08-27T18:47:35Z","modified":"2026-11-04T07:15:07Z","fixes":[{"ecosystem":"Alpine:v3.22","package":"pcre2","fixed_in":["10.46-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"pcre2","fixed_in":["10.46-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"pcre2","fixed_in":["10.46-r0"],"sources":["osv"]},{"ecosystem":"Alpaquita:stream","package":"pcre2","fixed_in":["10.46-r0"],"sources":["osv"]},{"ecosystem":"BellSoft Hardened Containers:stream","package":"pcre2","fixed_in":["10.46-r0"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pcre2","fixed_in":["10.46-1~deb13u1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pcre2","fixed_in":["10.46-1"],"sources":["osv"]},{"ecosystem":"Julia","package":"PCRE2_jll","fixed_in":["10.46.0+0"],"sources":["osv"]},{"ecosystem":"Root:Ubuntu:22.04","package":"pcre2","fixed_in":["10.39-3ubuntu0.2.aikido.6"],"sources":["osv"]},{"ecosystem":"Root:Ubuntu:22.04","package":"rootio-pcre2","fixed_in":["10.39-3ubuntu0.2.aikido.6"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Micro 6.2","package":"pcre2","fixed_in":["10.45-160000.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","package":"pcre2","fixed_in":["10.45-160000.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","package":"pcre2","fixed_in":["10.45-160000.3.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:25.04","package":"pcre2","fixed_in":["10.45-1ubuntu0.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"pcre2","fixed_in":["10.46-1.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 16.0","package":"pcre2","fixed_in":["10.45-160000.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.22","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-r0"}]}]},{"source":"osv","ecosystem":"Alpaquita:stream","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.45-r0"},{"fixed":"10.46-r0"}]}]},{"source":"osv","ecosystem":"BellSoft Hardened Containers:stream","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.45-r0"},{"fixed":"10.46-r0"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-1~deb13u1"}]}],"versions":["10.45-1"]},{"source":"osv","ecosystem":"Debian:14","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-1"}]}],"versions":["10.45-1","10.46-1~deb13u1"]},{"source":"osv","ecosystem":"Julia","package":"PCRE2_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"10.45.0+0"},{"fixed":"10.46.0+0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"10.45"}]}],"versions":["0.1.0","0.2.0","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0"]},{"source":"osv","ecosystem":"Root:Ubuntu:22.04","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.39-3ubuntu0.2.aikido.6"}]}]},{"source":"osv","ecosystem":"Root:Ubuntu:22.04","package":"rootio-pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.39-3ubuntu0.2.aikido.6"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Micro 6.2","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.45-160000.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 16.0","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.45-160000.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.45-160000.3.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:25.04","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.45-1ubuntu0.1"}]}],"versions":["10.42-4ubuntu3","10.45-1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.46-1.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 16.0","package":"pcre2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.45-160000.3.1"}]}]}],"products":[{"vendor":"pcre","product":"pcre2"},{"vendor":"pcre2project","product":"pcre2"}],"references":[{"url":"https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web","evidence","report"]},{"url":"https://github.com/PCRE2Project/pcre2/commit/a141712e5967d448c7ce13090ab530c8e3d82254","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46","tags":["x_refsource_MISC","Release Notes","web","advisory","report"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-58050","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2025-58050","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58050.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58050","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-58050","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202621094-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1248842","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2025-58050","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202621172-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-58050","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-58050","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7777-1","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-58050","title":"PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS","description":"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.","status":"published","published":"2025-08-27T18:47:35.041Z","modified":"2025-08-27T19:14:38.145Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna"}],"cwes":["CWE-125","CWE-122"],"updated_at":"2026-11-02T14:32:37.027582Z"}],"euvd":[{"id":"EUVD-2025-25947","description":"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.","status":"published","published":"2025-08-27T18:47:35Z","modified":"2025-08-27T19:14:38Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"updated_at":"2026-11-02T20:31:51.67789Z"}],"nvd":[{"id":"CVE-2025-58050","description":"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.","status":"published","published":"2025-08-27T19:15:37.56Z","modified":"2026-06-17T09:43:50.24Z","cvss":[{"version":"4.0","score":6.9,"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/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","level":"medium","assessor":"secondary"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-122","CWE-125","CWE-787"],"updated_at":"2026-11-02T14:11:25.826804Z"}],"osv":[{"id":"ALPINE-CVE-2025-58050","description":"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.","status":"published","published":"2025-08-27T19:15:37.56Z","modified":"2026-08-27T22:18:02.993064744Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:27:50.269992Z"},{"id":"BELL-CVE-2025-58050","status":"published","published":"2025-08-29T06:05:01.401606Z","modified":"2026-01-26T09:40:33.523145Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:22.495824Z"},{"id":"CVE-2025-58050","title":"PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS","description":"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.","status":"published","published":"2025-08-27T18:47:35.041Z","modified":"2026-10-28T11:00:05.359824952Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-122","CWE-125"],"updated_at":"2026-11-02T15:44:51.190588Z"},{"id":"DEBIAN-CVE-2025-58050","description":"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.","status":"published","published":"2025-08-27T19:15:37.56Z","modified":"2026-09-01T20:05:54.47966515Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:47.697959Z"},{"id":"JLSEC-2026-60","description":"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.","status":"published","published":"2026-04-07T13:24:02.285Z","modified":"2026-07-25T18:24:40.843889751Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"},{"version":"4.0","score":6.9,"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/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","level":"medium"}],"updated_at":"2026-11-02T15:47:18.573531Z"},{"id":"PYSEC-2025-259","description":"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.","status":"published","published":"2025-08-27T19:15:37.56Z","modified":"2026-07-13T07:15:39.720370041Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:52:54.242332Z"},{"id":"ROOT-OS-UBUNTU-2204-CVE-2025-58050","title":"CVE-2025-58050 in pcre2 - Patched by Root","description":"Root has patched CVE-2025-58050 in the pcre2 package for Root:Ubuntu:22.04. Multiple fixed versions available.","status":"published","published":"2026-11-04T06:48:12Z","modified":"2026-11-04T07:15:07.629765161Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-04T07:32:23.735279Z"},{"id":"UBUNTU-CVE-2025-58050","description":"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.","status":"withdrawn","published":"2025-08-27T19:15:00Z","modified":"2026-02-04T03:10:33.897676Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T16:55:50.817402Z"},{"id":"openSUSE-SU-2025:15501-1","title":"libpcre2-16-0-10.46-1.1 on GA media","description":"These are all security issues fixed in the libpcre2-16-0-10.46-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-08-29T00:00:00Z","modified":"2026-03-23T04:53:51.873615Z","updated_at":"2026-11-02T16:58:37.810934Z"},{"id":"openSUSE-SU-2026:20512-1","title":"Security update for pcre2","description":"This update for pcre2 fixes the following issue:\n\n- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS\n  (bsc#1248842).\n","status":"published","published":"2026-04-10T18:29:30Z","modified":"2026-04-22T18:26:54.879179Z","updated_at":"2026-11-02T16:58:41.463445Z"},{"id":"SUSE-SU-2026:21094-1","title":"Security update for pcre2","description":"This update for pcre2 fixes the following issue:\n\n- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS\n  (bsc#1248842).\n","status":"published","published":"2026-04-10T18:27:30Z","modified":"2026-04-17T18:23:56.622458Z","updated_at":"2026-11-02T15:54:02.312556Z"},{"id":"SUSE-SU-2026:21172-1","title":"Security update for pcre2","description":"This update for pcre2 fixes the following issue:\n\n- CVE-2025-58050: integer overflow leads to heap buffer overread in match_ref due to missing boundary restoration in SCS\n  (bsc#1248842).\n","status":"published","published":"2026-04-10T18:27:30Z","modified":"2026-04-22T18:25:37.395352Z","updated_at":"2026-11-02T15:54:02.312556Z"},{"id":"USN-7777-1","title":"pcre2 vulnerability","description":"It was discovered that PCRE2 incorrectly handled the Scan SubString verb.\nAn attacker could possibly use this issue to cause applications using PCRE2\nto expose sensitive information.","status":"published","published":"2025-09-25T13:06:02.74638Z","modified":"2025-10-13T04:42:44Z","updated_at":"2026-11-02T16:58:21.91885Z"}]}}
