CVE-2026-119206
pypdf: Possible long runtimes when retrieving page labels
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can take excessive time to retrieve page labels from a crafted PDF containing a flat page-label number tree with many ranges. The page_labels property resolves each page independently and repeatedly scans the same /Nums array from the beginning, causing work to grow with both the page count and the number of label ranges. This issue is fixed in version 6.21.3.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
pypdf (pip): GitHub reports patched versions >= 6.21.3. Check the advisory for the affected release branch.
Source: GitHub GHSA-42gh-23hr-vphwFix
pypdf (PyPI): OSV reports a fixed version 6.21.3. Check the advisory for supported release branches.
Source: OSV GHSA-42gh-23hr-vphwAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| pypdf py-pdf |
< 6.21.3 (affected) | CNA: GitHub_M |
pypdfpypdf
pip |
< 6.21.3 (affected, GitHub advisory range) | GitHub GHSA-42gh-23hr-vphw |
pypdfpypdf
PyPI |
1.0 (affected, PyPI) 1.1 (affected, PyPI) 1.10 (affected, PyPI) 1.11 (affected, PyPI) 1.12 (affected, PyPI) 1.13 (affected, PyPI) 1.2 (affected, PyPI) 1.3 (affected, PyPI) 1.4 (affected, PyPI) 1.5 (affected, PyPI) 1.6 (affected, PyPI) 1.7 (affected, PyPI) 1.8 (affected, PyPI) 1.9 (affected, PyPI) 3.1.0 (affected, PyPI) 3.10.0 (affected, PyPI) 3.11.0 (affected, PyPI) 3.11.1 (affected, PyPI) 3.12.0 (affected, PyPI) 3.12.1 (affected, PyPI) 3.12.2 (affected, PyPI) 3.13.0 (affected, PyPI) 3.14.0 (affected, PyPI) 3.15.0 (affected, PyPI) 3.15.1 (affected, PyPI) 3.15.2 (affected, PyPI) 3.15.3 (affected, PyPI) 3.15.4 (affected, PyPI) 3.15.5 (affected, PyPI) 3.16.0 (affected, PyPI) 3.16.1 (affected, PyPI) 3.16.2 (affected, PyPI) 3.16.3 (affected, PyPI) 3.16.4 (affected, PyPI) 3.17.0 (affected, PyPI) 3.17.1 (affected, PyPI) 3.17.2 (affected, PyPI) 3.17.3 (affected, PyPI) 3.17.4 (affected, PyPI) 3.2.0 (affected, PyPI) 3.2.1 (affected, PyPI) 3.3.0 (affected, PyPI) 3.4.0 (affected, PyPI) 3.4.1 (affected, PyPI) 3.5.0 (affected, PyPI) 3.5.1 (affected, PyPI) 3.5.2 (affected, PyPI) 3.6.0 (affected, PyPI) 3.7.0 (affected, PyPI) 3.7.1 (affected, PyPI) 3.8.0 (affected, PyPI) 3.8.1 (affected, PyPI) 3.9.0 (affected, PyPI) 3.9.1 (affected, PyPI) 4.0.0 (affected, PyPI) 4.0.1 (affected, PyPI) 4.0.2 (affected, PyPI) 4.1.0 (affected, PyPI) 4.2.0 (affected, PyPI) 4.3.0 (affected, PyPI) 4.3.1 (affected, PyPI) 5.0.0 (affected, PyPI) 5.0.1 (affected, PyPI) 5.1.0 (affected, PyPI) 5.2.0 (affected, PyPI) 5.3.0 (affected, PyPI) 5.3.1 (affected, PyPI) 5.4.0 (affected, PyPI) 5.5.0 (affected, PyPI) 5.6.0 (affected, PyPI) 5.6.1 (affected, PyPI) 5.7.0 (affected, PyPI) 5.8.0 (affected, PyPI) 5.9.0 (affected, PyPI) 6.0.0 (affected, PyPI) 6.1.0 (affected, PyPI) 6.1.1 (affected, PyPI) 6.1.2 (affected, PyPI) 6.1.3 (affected, PyPI) 6.10.0 (affected, PyPI) 6.10.1 (affected, PyPI) 6.10.2 (affected, PyPI) 6.11.0 (affected, PyPI) 6.12.0 (affected, PyPI) 6.12.1 (affected, PyPI) 6.12.2 (affected, PyPI) 6.13.0 (affected, PyPI) 6.13.1 (affected, PyPI) 6.13.2 (affected, PyPI) 6.13.3 (affected, PyPI) 6.14.0 (affected, PyPI) 6.14.1 (affected, PyPI) 6.14.2 (affected, PyPI) 6.15.0 (affected, PyPI) 6.16.0 (affected, PyPI) 6.16.1 (affected, PyPI) 6.16.2 (affected, PyPI) 6.17.0 (affected, PyPI) 6.18.0 (affected, PyPI) 6.18.1 (affected, PyPI) 6.19.0 (affected, PyPI) 6.2.0 (affected, PyPI) 6.20.0 (affected, PyPI) 6.20.1 (affected, PyPI) 6.21.0 (affected, PyPI) 6.21.1 (affected, PyPI) 6.21.2 (affected, PyPI) 6.3.0 (affected, PyPI) 6.4.0 (affected, PyPI) 6.4.1 (affected, PyPI) 6.4.2 (affected, PyPI) 6.5.0 (affected, PyPI) 6.6.0 (affected, PyPI) 6.6.1 (affected, PyPI) 6.6.2 (affected, PyPI) 6.7.0 (affected, PyPI) 6.7.1 (affected, PyPI) 6.7.2 (affected, PyPI) 6.7.3 (affected, PyPI) 6.7.4 (affected, PyPI) 6.7.5 (affected, PyPI) 6.8.0 (affected, PyPI) 6.9.0 (affected, PyPI) 6.9.1 (affected, PyPI) 6.9.2 (affected, PyPI) Ecosystem version events: introduced 0; fixed 6.21.3 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-42gh-23hr-vphw |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.21.3",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.1 high |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | CNA: GitHub_M |
| 4.0 / 7.1 high |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 5.5 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-42gh-23hr-vphwCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/py-pdf/pypdf/pull/4251CNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/b891fef37000cd86baa6e9848a3387d080b3b03eCNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/releases/tag/6.21.3CNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/b891fef37000cd86baa6e9848a3387d080b3b03e[email protected] · Patch
- https://github.com/py-pdf/pypdf/pull/4251[email protected] · Patch
- https://github.com/py-pdf/pypdf/releases/tag/6.21.3[email protected] · Release Notes
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-42gh-23hr-vphw[email protected] · Patch, Vendor Advisory
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-42gh-23hr-vphwGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-42gh-23hr-vphwOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-42gh-23hr-vphwOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.