CVE-2026-14895

High

Description

String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service. The trim and rtrim functions stripped trailing whitespace with s/\s*$//u. Because \s* matches greedily and the $ anchor fails whenever a non-whitespace character follows the whitespace, the regex engine retries the match at each offset of a long whitespace run, producing quadratic backtracking. The fix replaces \s*$ with \s+$. Any caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.

SeverityHigh
CVSS7.5
Exploit probability—
ProductString::Util
PublishedJul 7, 2026
First seenJul 7, 2026
Weakness typeCWE-1333CWE-1333

How to fix

Affected products

ProductAffected versionsFixed in
BAKERSCOT String::Utilv < 1.361.36

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-14895 · String::Util · Dark Radar