CVE-2026-14895 Details
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.
A regular expression denial-of-service vulnerability has been identified in String::Util versions prior to 1.36 for Perl. The issue arises in the trim and rtrim functions, which use a regex pattern that matches trailing whitespace greedily. This pattern can cause the regex engine to backtrack excessively when processing long runs of whitespace, leading to CPU exhaustion. The vulnerability can be exploited by any caller that passes untrusted input to these functions, using a string with a prolonged sequence of whitespace.
Users can upgrade to String::Util version 1.36 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 7, 2026CISA-ADP
Assessed Jul 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/scottchiefbaker/String-Util/commit/f8150867aaeb8f57c59601aefb2193f2caed8745.patch | CPANSec | Source CodeVendor |
| https://github.com/scottchiefbaker/String-Util/releases | CPANSec | Release NotesVendor |
| https://metacpan.org/release/BAKERSCOT/String-Util-1.36/diff/BAKERSCOT/String-Util-1.35#lib/String/Util.pm | CPANSec | |
| http://www.openwall.com/lists/oss-security/2026/07/07/18 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| String::Util | < 1.36 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | CVE Modified | CVE |
| Jul 7, 2026 | New CVE Received | CPANSec |
Volerion