UBUNTU-CVE-2026-31826

Source
https://ubuntu.com/security/CVE-2026-31826
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31826.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-31826
Upstream
Published
2026-03-10T22:16:00Z
Modified
2026-03-20T08:07:00.590193Z
Severity
  • 6.8 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

pypdf is a free and open-source pure-python PDF library. Prior to 6.8.0, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing a content stream with a rather large /Length value, regardless of the actual data length inside the stream. This vulnerability is fixed in 6.8.0.

References

Affected packages

Ubuntu:24.04:LTS / pypdf

Package

Name
pypdf
Purl
pkg:deb/ubuntu/pypdf@4.0.2-1?arch=source&distro=noble

Affected ranges

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

Affected versions

3.*
3.4.1-1
3.17.4-1
4.*
4.0.0-1
4.0.1-1
4.0.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-pypdf",
            "binary_version": "4.0.2-1"
        }
    ]
}

Database specific

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

Ubuntu:25.10 / pypdf

Package

Name
pypdf
Purl
pkg:deb/ubuntu/pypdf@5.4.0-1?arch=source&distro=questing

Affected ranges

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

Affected versions

4.*
4.3.1-1
5.*
5.4.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-pypdf",
            "binary_version": "5.4.0-1"
        }
    ]
}

Database specific

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