{"id":"CVE-2026-14895","aliases":["DEBIAN-CVE-2026-14895","EUVD-2026-42127","GHSA-vm32-9cff-wgh2","MGASA-2026-0272","UBUNTU-CVE-2026-14895"],"status":"published","title":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.0063,"percentile":0.50523,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333"],"published":"2026-07-07T22:12:22Z","modified":"2026-10-28T02:30:48Z","fixes":[{"ecosystem":"Debian:14","package":"libstring-util-perl","fixed_in":["1.36-1"],"sources":["osv"]},{"ecosystem":"Mageia:10","package":"perl-String-Util","fixed_in":["1.350.0-2.1.mga10"],"sources":["osv"]},{"ecosystem":"Mageia:9","package":"perl-String-Util","fixed_in":["1.340.0-1.1.mga9"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.34-2","1.35-1","1.36-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.35-1","1.36-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.36-1"}]}],"versions":["1.35-1"]},{"source":"osv","ecosystem":"Mageia:10","package":"perl-String-Util","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.350.0-2.1.mga10"}]}]},{"source":"osv","ecosystem":"Mageia:9","package":"perl-String-Util","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.340.0-1.1.mga9"}]}]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.34-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.35-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.35-1","1.36-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libstring-util-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.35-1"]}],"products":[{"vendor":"bakerscot","product":"string::util"}],"references":[{"url":"https://github.com/scottchiefbaker/String-Util/commit/f8150867aaeb8f57c59601aefb2193f2caed8745.patch","tags":["patch","fix"]},{"url":"https://metacpan.org/release/BAKERSCOT/String-Util-1.36/diff/BAKERSCOT/String-Util-1.35#lib/String/Util.pm","tags":["web"]},{"url":"https://github.com/scottchiefbaker/String-Util/releases","tags":["release-notes","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/07/18","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14895","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vm32-9cff-wgh2"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14895.json","tags":["advisory"]},{"url":"https://github.com/scottchiefbaker/String-Util","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-14895","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2026-0272.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=35858","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2026/07/07/18","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2026-14895","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-14895","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/41625636/","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-14895","title":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","status":"published","published":"2026-07-07T22:12:22.46Z","modified":"2026-07-08T14:05:18.813Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T13:38:32.13011Z"}],"euvd":[{"id":"EUVD-2026-42127","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","status":"published","published":"2026-07-07T22:12:22Z","modified":"2026-07-08T14:05:18Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T18:20:10.578977Z"}],"ghsa":[{"id":"GHSA-vm32-9cff-wgh2","title":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of...","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","status":"published","published":"2026-07-08T00:37:56Z","modified":"2026-07-08T15:31:55Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:09:19.587132Z"}],"nvd":[{"id":"CVE-2026-14895","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","status":"published","published":"2026-07-07T23:16:54.293Z","modified":"2026-10-25T20:10:00.147Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:12:28.040501Z"}],"osv":[{"id":"CVE-2026-14895","title":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service","description":"String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service.\n\nThe 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+$.\n\nAny caller that passes untrusted input to trim or rtrim can trigger CPU exhaustion with a string containing a long run of whitespace.","status":"published","published":"2026-07-07T22:12:22.46Z","modified":"2026-10-28T02:30:48.180140827Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:44:57.682091Z"},{"id":"DEBIAN-CVE-2026-14895","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.","status":"published","published":"2026-07-07T23:16:54.293Z","modified":"2026-10-26T11:47:35.246011424Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:51.8748Z"},{"id":"UBUNTU-CVE-2026-14895","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.","status":"published","published":"2026-07-07T23:16:00Z","modified":"2026-10-17T12:58:05.801040653Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:00.592716Z"},{"id":"MGASA-2026-0272","title":"Updated perl-String-Util package fixes a security vulnerability","description":"The updated package fixes a security vulnerability:\nString::Util versions before 1.36 for Perl are susceptible to a regular\nexpression denial of service. (CVE-2026-14895)\n","status":"published","published":"2026-07-19T06:29:10Z","modified":"2026-07-19T06:30:04.664441243Z","updated_at":"2026-11-02T15:49:43.795591Z"}]}}
