CVE-2026-14895 Affecting libstring-util-perl package, versions <1.36-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.39% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBSTRINGUTILPERL-17891404
  • published8 Jul 2026
  • disclosed7 Jul 2026

Introduced: 7 Jul 2026

CVE-2026-14895  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libstring-util-perl to version 1.36-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libstring-util-perl package and not the libstring-util-perl package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.