{"id":"DEBIAN-CVE-2026-14895","details":"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.","modified":"2026-09-14T17:02:46.750356175Z","published":"2026-07-07T23:16:54.293Z","upstream":["CVE-2026-14895"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-14895"}],"affected":[{"package":{"name":"libstring-util-perl","ecosystem":"Debian:12","purl":"pkg:deb/debian/libstring-util-perl?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.34-2","1.35-1","1.36-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"}},{"package":{"name":"libstring-util-perl","ecosystem":"Debian:13","purl":"pkg:deb/debian/libstring-util-perl?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.35-1","1.36-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"}},{"package":{"name":"libstring-util-perl","ecosystem":"Debian:14","purl":"pkg:deb/debian/libstring-util-perl?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36-1"}]}],"versions":["1.35-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-14895.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}