CVE-2026-84310: pypdf Possible Long Runtimes/large Memory Usage Vulnerability
MODERATECVE-2026-84310 is a MODERATE possible long runtimes/large memory usage vulnerability (CWE-405: Asymmetric Resource Consumption (Amplification)) affecting pypdf libraries in the PyPI ecosystem. The issue involves possible long runtimes/large memory usage when retrieving outlines. Remediation is available by upgrading affected packages to version 6.16.1.
CVE-2026-84310 at a Glance
How to Fix CVE-2026-84310
To remediate this vulnerability, upgrade all affected pypdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pypdf>=6.16.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pypdf
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-84310, inspect your installed packages using pip:
pip show pypdf
Analyze the terminal output to locate any version of pypdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.16.1), your application is affected.
Note: The pip show pypdf command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-405: Asymmetric Resource Consumption (Amplification), where the product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric.". In pypdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-84310 Affected pypdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pypdf
|
PyPI |
< 6.16.1
|
6.16.1
|
References
Frequently Asked Questions
What is CVE-2026-84310?
Which pypdf versions are affected?
What version fixes CVE-2026-84310?
Is pypdf affected?
What CWE is associated with CVE-2026-84310?
How can I check PyPI dependencies for CVE-2026-84310?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-23w6-3w8w-8484",
"modified" : "2026-09-01T21:28:38Z",
"published" : "2026-09-01T21:28:37Z",
"aliases" : [ "CVE-2026-84310" ],
"summary" : "pypdf: Possible long runtimes/large memory usage when retrieving outlines",
"details" : "### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires accessing the outlines of a document with either lots of entries or nested outlines with long re-used nesting paths.\n\n### Patches\n\nThis has been fixed in [pypdf==6.16.1](https://github.com/py-pdf/pypdf/releases/tag/6.16.1).\n\n### Workarounds\n\nIf you cannot upgrade yet, consider applying the changes from PR [#3966](https://github.com/py-pdf/pypdf/pull/3966).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pypdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.16.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/security/advisories/GHSA-23w6-3w8w-8484"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/pull/3966"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/commit/d91ab705fd81ed1a9cec175c6958600dea1a4942"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/py-pdf/pypdf"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/releases/tag/6.16.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-405", "CWE-834" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-01T21:28:37Z",
"nvd_published_at" : null
}
}