UBUNTU-CVE-2026-14895

Source
https://ubuntu.com/security/CVE-2026-14895
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-14895.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-14895
Upstream
Published
2026-07-07T23:16:00Z
Modified
2026-07-09T21:30:15.396916119Z
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
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:24.04:LTS / libstring-util-perl

Package

Name
libstring-util-perl
Purl
pkg:deb/ubuntu/libstring-util-perl?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.34-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libstring-util-perl",
            "binary_version": "1.34-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-14895.json"

Ubuntu:25.10 / libstring-util-perl

Package

Name
libstring-util-perl
Purl
pkg:deb/ubuntu/libstring-util-perl?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.35-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libstring-util-perl",
            "binary_version": "1.35-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-14895.json"

Ubuntu:26.04:LTS / libstring-util-perl

Package

Name
libstring-util-perl
Purl
pkg:deb/ubuntu/libstring-util-perl?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.35-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libstring-util-perl",
            "binary_version": "1.35-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-14895.json"