{
  "id": "CVE-2026-14895",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-14895",
  "published_at": "2026-07-07T22:12:22.46Z",
  "title": "String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service",
  "vendor": "BAKERSCOT",
  "product": "String::Util",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-1333",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "BAKERSCOT",
        "product": "String::Util",
        "ranges": [
          "\u003c 1.36"
        ],
        "fixed_in": [
          "1.36"
        ]
      }
    ],
    "solutions": [
      "Upgrade to version 1.36 or later."
    ],
    "upgrade": [
      "Upgrade String::Util to 1.36 or later."
    ],
    "workarounds": [
      "For deployments that cannot upgrade, enforce a maximum length on strings before passing them to the trim and rtrim functions.\n\nNote that the HTML form field maxlength attribute is only enforced client-side."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/scottchiefbaker/String-Util/commit/f8150867aaeb8f57c59601aefb2193f2caed8745.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/scottchiefbaker/String-Util/releases"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
