CVE-2026-14895

Source
https://cve.org/CVERecord?id=CVE-2026-14895
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-14895.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-14895
Downstream
Published
2026-07-07T22:12:22.460Z
Modified
2026-07-09T04:01:17.184262701Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14895.json",
    "cwe_ids": [
        "CWE-1333"
    ],
    "cna_assigner": "CPANSec"
}
References

Affected packages

Git / github.com/scottchiefbaker/string-util

Affected ranges

Type
GIT
Repo
https://github.com/scottchiefbaker/string-util
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.36"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.30
1.31
1.32
Other
MIKO
stable
cpan_path/MIKO/String-Util-1.*
cpan_path/MIKO/String-Util-1.01.tar.gz
cpan_path/MIKO/String-Util-1.20.tar.gz
cpan_path/MIKO/String-Util-1.21.tar.gz
cpan_path/MIKO/String-Util-1.22.tar.gz
cpan_path/MIKO/String-Util-1.23.tar.gz
cpan_path/MIKO/String-Util-1.24.tar.gz
cpan_version/1.*
cpan_version/1.01
cpan_version/1.20
cpan_version/1.21
cpan_version/1.22
cpan_version/1.23
cpan_version/1.24
gitpan_version/1.*
gitpan_version/1.01
gitpan_version/1.20
gitpan_version/1.21
gitpan_version/1.22
gitpan_version/1.23
gitpan_version/1.24
v1.*
v1.30
v1.33
v1.34
v1.35

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-14895.json"