libstring-util-perl — security advisory
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.
- Products
- libstring-util-perl
- Affected versions
- 1.34-2, 1.35-1, 1.36-1
- Fixed versions
- 1.36-1
- CVEs
- CVE-2026-14895
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 12:20 UTC · Revision 2
Source evidence
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.
osv:DEBIAN-CVE-2026-14895
libstring-util-perl
Fixed versions: Not specified
libstring-util-perl
Fixed versions: Not specified
libstring-util-perl
Fixed versions: 1.36-1
Complete source record
{
"id": "accd31618bd51ad796cbedf9e0ab10745149a9265f982081cde0617eebf1ab05",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-14895",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-14895",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-14895",
"products": [
{
"name": {
"value": "libstring-util-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.34-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.35-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.36-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libstring-util-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.35-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.36-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libstring-util-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.36-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.35-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-14895",
"aliases": [
"DEBIAN-CVE-2026-14895"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libstring-util-perl",
"purl": "pkg:deb/debian/libstring-util-perl?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.34-2",
"1.35-1",
"1.36-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libstring-util-perl",
"purl": "pkg:deb/debian/libstring-util-perl?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.35-1",
"1.36-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.36-1"
}
]
}
],
"package": {
"name": "libstring-util-perl",
"purl": "pkg:deb/debian/libstring-util-perl?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.35-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T11:47:35.246011424Z",
"provider": "osv",
"upstream": [
"CVE-2026-14895"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-14895"
]
},
"related_cves": [
{
"value": "CVE-2026-14895",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 450884,
"published_at": "2026-07-07T23:16:54.293+00:00"
}