CVE-2026-14895
published high CVSS 3.1 · 7.5String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| BAKERSCOT | — | String-UtilString::Util · 0 to < 1.36 · Other versions: unaffected | Affected | Not stated | CPANSec |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| BAKERSCOT | String::Util | 0 to < 1.36 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
4- http://www.openwall.com/lists/oss-security/2026/07/07/18
- https://github.com/scottchiefbaker/String-Util/commit/f8150867aaeb8f57c59601aefb2193f2caed8745.patch
- https://github.com/scottchiefbaker/String-Util/releases
- https://metacpan.org/release/BAKERSCOT/String-Util-1.36/diff/BAKERSCOT/String-Util-1.35#lib/String/Util.pm
Provider assertions
3CPANSec · cna
String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 39e7964bb069deec45ea6e35b17221a84037de073f435792fab5784f641916f8
- Ingested
- 23 Sep 2026, 09:01:59 UTC
- Source record
- Official CVE record