CVE-2026-14895 String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 2 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libstring-util-perl(Debian 12) | = 1.34-2; = 1.35-1; = 1.36-1; All versions | No fix listed | No fix yet |
| debian/libstring-util-perl(Debian 13) | = 1.35-1; = 1.36-1; All versions | No fix listed | No fix yet |
| ubuntu/libstring-util-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libstring-util-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libstring-util-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| BAKERSCOT String::Util | < 1.36 | 1.36 | Fixed |
| debian/libstring-util-perl(Debian 14) | < 1.36-1; = 1.35-1 | 1.36-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| BAKERSCOT String::Util | < 1.36 | 1.36 |
| debian/libstring-util-perl(Debian:12) | All versions | No fix listed |
| debian/libstring-util-perl(Debian:12) | = 1.34-2 | No fix listed |
| debian/libstring-util-perl(Debian:12) | = 1.35-1 | No fix listed |
| debian/libstring-util-perl(Debian:12) | = 1.36-1 | No fix listed |
| debian/libstring-util-perl(Debian:13) | All versions | No fix listed |
| debian/libstring-util-perl(Debian:13) | = 1.35-1 | No fix listed |
| debian/libstring-util-perl(Debian:13) | = 1.36-1 | No fix listed |
| debian/libstring-util-perl(Debian:14) | < 1.36-1 | 1.36-1 |
| debian/libstring-util-perl(Debian:14) | = 1.35-1 | No fix listed |
| ubuntu/libstring-util-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libstring-util-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libstring-util-perl(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com patch
- metacpan.org
- github.com release-notes
- www.openwall.com
- Debian Security Tracker CVE-2026-14895 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org