CVE-2025-58050

CRITICAL
Published Aug 27, 2025 Modified Sep 9, 2025 CWE-122 CWE-125 CWE-787

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.

CVSS v3.1 Score

9.1
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Weakness Type (CWE)

CWE-122 CWE-122
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write

Affected Products

Vendor Product
pcre pcre2

References

Frequently Asked Questions

What is CVE-2025-58050? +
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. It has a CVSS v3.1 base score of 9.1 (CRITICAL).
How severe is CVE-2025-58050? +
CVE-2025-58050 has a CVSS v3.1 score of 9.1 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2025-58050? +
CVE-2025-58050 affects products from pcre, specifically: pcre2. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-58050? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-58050 — free, no signup required.

Start Free Scan