CVE-2023-36810
published medium CVSS 3.1 · 6.2Quadratic runtime with malformed PDF missing xref marker in pypdf
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| py-pdf | — | pypdf< 1.27.9 | Affected | Not stated | GitHub_M |
| Debian | buster | pypdf2 | Advisory build | 1.26.0-2+deb10u2 | DLA-3497-1 |
| Ubuntu | bionic | pypdf2 | Advisory build | 1.26.0-2ubuntu0.1~esm2 | USN-6280-1 |
| Ubuntu | bionic | python-pypdf2 | Advisory build | 1.26.0-2ubuntu0.1~esm2 | USN-6280-1 |
| Ubuntu | bionic | python3-pypdf2 | Advisory build | 1.26.0-2ubuntu0.1~esm2 | USN-6280-1 |
| Ubuntu | focal | pypdf2 | Advisory build | 1.26.0-3ubuntu1.20.04.2 | USN-6280-1 |
| Ubuntu | focal | python-pypdf2 | Advisory build | 1.26.0-3ubuntu1.20.04.2 | USN-6280-1 |
| Ubuntu | focal | python3-pypdf2 | Advisory build | 1.26.0-3ubuntu1.20.04.2 | USN-6280-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | pypdf2 | Advisory build | 1.26.0-4ubuntu0.22.04.2 | USN-6280-1 |
| Ubuntu | jammy | python3-pypdf2 | Advisory build | 1.26.0-4ubuntu0.22.04.2 | USN-6280-1 |
| Ubuntu | xenial | pypdf2 | Advisory build | 1.25.1-1ubuntu0.1~esm2 | USN-6280-1 |
| Ubuntu | xenial | python-pypdf2 | Advisory build | 1.25.1-1ubuntu0.1~esm2 | USN-6280-1 |
| Ubuntu | xenial | python3-pypdf2 | Advisory build | 1.25.1-1ubuntu0.1~esm2 | USN-6280-1 |
Description
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. This issue has been addressed in PR 808 and versions from 1.27.9 include this fix. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| py-pdf | pypdf | < 1.27.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-407 CWE-407: Inefficient Algorithmic Complexity
References
4Provider assertions
3GitHub_M · cna
Quadratic runtime with malformed PDF missing xref marker in pypdf
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 866843278630ed96f4c62f366d75b272c13d75a6212fddac258c3cfd1cfa1d4b
- Ingested
- 23 Sep 2026, 08:10:01 UTC
- Source record
- Official CVE record