Vulnerabilities / CVE-2025-58050

critical

CVE-2025-58050

pcre2: PCRE2: heap-buffer-overflow read in match_ref due to missing boundary restoration in SCS

Published Modified CWE 122, 125, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Julia6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Julia (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.22pcre210.46-r0
alpine 3.23pcre210.46-r0
alpine 3.24pcre210.46-r0
alpine edgepcre210.46-r0
debian 13pcre210.46-1~deb13u1
debian 14pcre210.46-1
julia::Julia Ecosystem Security AdvisoriesPCRE2_jll10.46.0+0
minimospcre210.46-r0
rapidfort alpine 3.20pcre210.46-r0
rapidfort alpine 3.21pcre210.46-r0
rapidfort alpine 3.22pcre210.46-r0
rapidfort alpine 3.23pcre210.46-r0
Show all 20 entries from 17 sources
SourcePackageFixed in
alpine 3.22pcre210.46-r0
alpine 3.23pcre210.46-r0
alpine 3.24pcre210.46-r0
alpine edgepcre210.46-r0
debian 13pcre210.46-1~deb13u1
debian 14pcre210.46-1
julia::Julia Ecosystem Security AdvisoriesPCRE2_jll10.46.0+0
minimospcre210.46-r0
rapidfort alpine 3.20pcre210.46-r0
rapidfort alpine 3.21pcre210.46-r0
rapidfort alpine 3.22pcre210.46-r0
rapidfort alpine 3.23pcre210.46-r0
rapidfort alpine 3.24pcre210.46-r0
rapidfort debian 12pcre20:10.46-1, 0:10.46-1~deb13u1
rapidfort debian 12rf-pcre20:10.46-1~deb13u1
rapidfort debian 13pcre20:10.46-1, 0:10.46-1~deb13u1
rapidfort debian 13rf-pcre20:10.46-1~deb13u1
root.io ubuntu 22.04pcre210.39-3ubuntu0.1.root.io.1, 10.39-3ubuntu0.1.root.io.2, 10.39-3ubuntu0.1.root.io.3, 10.39-3ubuntu0.1.root.io.4
root.io ubuntu 22.04rootio-pcre210.39-3ubuntu0.1.root.io.1, 10.39-3ubuntu0.1.root.io.2, 10.39-3ubuntu0.1.root.io.3, 10.39-3ubuntu0.1.root.io.4
ubuntu 25.04pcre210.45-1ubuntu0.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.