CVE Catalog

CVE-2026-14895

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

A vulnerability in the String::Util library for Perl before version 1.36 allows a Regular Expression Denial of Service (ReDoS) attack. The trim and rtrim functions use the regular expression s/\s*$//u, which causes quadratic backtracking on long whitespace strings, leading to CPU exhaustion.

Risk Assessment

The organization is at risk of a DoS attack if it processes untrusted input using the trim or rtrim functions. An attacker can send a string containing a long whitespace sequence, causing high CPU load and potentially disrupting application availability.

Recommendation

Immediately update the String::Util library to version 1.36 or later. If an update is not possible, restrict processing of untrusted data by trim and rtrim functions or implement a custom whitespace removal routine.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS