
CVE catalog
CVE-2026-14895
String::Util versions before 1.36 for Perl are…
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.
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "libstring-util-perl",
"status": "fixed",
"release": "sid",
"version": "1.36-1"
},
{
"name": "libstring-util-perl",
"status": "fixed",
"release": "forky",
"version": "1.36-1"
},
{
"name": "libstring-util-perl",
"status": "vulnerable",
"release": "trixie",
"version": "1.35-1"
},
{
"name": "libstring-util-perl",
"status": "vulnerable",
"release": "bookworm",
"version": "1.34-2"
}
],
"fixed_versions": [
{
"bug": null,
"name": "libstring-util-perl",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "1.36-1"
},
{
"bug": null,
"name": "libstring-util-perl",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "1.36-1"
},
{
"bug": null,
"name": "libstring-util-perl",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": null,
"name": "libstring-util-perl",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "libstring-util-perl",
"ecosystem": "cpe",
"fixed_version": "not yet fixed"
}
]
}Publisher notes
[trixie] libstring-util-perl: Minor issue; will be fixed via point release [bookworm] libstring-util-perl: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libstring-util-perl]Unknown
Details (2)
1.34-2· all · bookwormAffected
nvd · libstring-util-perl · debian · bookworm; nvd · libstring-util-perl · debian · 12
1.34-2· all · bookwormAffected
nvd · libstring-util-perl · debian · bookworm; nvd · libstring-util-perl · debian · 12
[Debian 13 (Trixie)]
- [libstring-util-perl]Unknown
Details (2)
1.35-1· all · trixieAffected
nvd · libstring-util-perl · debian · 13
1.35-1· all · trixieAffected
nvd · libstring-util-perl · debian · 13
Observed:
References
- [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]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-14895]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-14895]
- [https://security-tracker.debian.org/tracker/CVE-2026-14895]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]