CVE catalog

CVE-2026-14895

String::Util versions before 1.36 for Perl are…

[CVE catalog]

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.5CVSS: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)]

  • Details (2)
    • 1.34-2 · all · bookworm

      Affected

      nvd · libstring-util-perl · debian · bookworm; nvd · libstring-util-perl · debian · 12

    • 1.34-2 · all · bookworm

      Affected

      nvd · libstring-util-perl · debian · bookworm; nvd · libstring-util-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1.35-1 · all · trixie

      Affected

      nvd · libstring-util-perl · debian · 13

    • 1.35-1 · all · trixie

      Affected

      nvd · libstring-util-perl · debian · 13

Observed:

References