Home / Qpdf Project / Qpdf / CVE-2021-36978
CVE-2021-36978: is it exploited, and which versions of Qpdf Project Qpdf are affected and fixed?
CVE-2021-36978 is an out-of-bounds write (memory corruption) vulnerability in Qpdf Project Qpdf. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: qpdf from 9.0.0 through 9.1.1 and qpdf from 10.0.0 through 10.0.4 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:56 UTC.
What is CVE-2021-36978?
QPDF 9.x through 9.1.1 and 10.x through 10.0.4 has a heap-based buffer overflow in Pl_ASCII85Decoder::write (called from Pl_AES_PDF::flush and Pl_AES_PDF::finish) when a certain downstream write fails.
From the CVE record by mitre, last updated October 15, 2024, 17:14 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| qpdf project | qpdf | from 9.0.0 through 9.1.1 | application |
| qpdf project | qpdf | from 10.0.0 through 10.0.4 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:59 UTC.
How severe is CVE-2021-36978?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-36978 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 15, 2024)
- EPSS
- 1.27% probability of exploitation activity in the next 30 days, percentile 70.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- https://github.com/qpdf/qpdf/issues/492
- https://github.com/qpdf/qpdf/commit/dc92574c10f3e2516ec6445b88c5d584f40df4e5
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/qpdf/OSV-2020-2245.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28262
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3548-1] qpdf security update mailing-list
- GLSA-202401-20 vendor-advisory
When was it published, and where is the official record?
- Reserved
- July 20, 2021
- Published
- July 20, 2021, 00:00 UTC
- CVE record updated
- October 15, 2024, 17:14 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 03:59 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:56 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Qpdf?
- Feb 29, 2024CVE-2024-24246 Qpdf Project Qpdf: out-of-bounds write (memory corruption)
- Aug 11, 2023CVE-2021-25786 Qpdf Project Qpdf: use after free
- Jul 22, 2022CVE-2022-34503 Qpdf Project Qpdf: out-of-bounds write (memory corruption)
- Oct 6, 2018CVE-2018-18020 Qpdf Project Qpdf: uncontrolled recursion
- Apr 10, 2018CVE-2018-9918 Qpdf Project Qpdf: uncontrolled recursion
- Feb 13, 2018CVE-2017-18186 Qpdf Project Qpdf: infinite loop (denial of service)
- Feb 13, 2018CVE-2017-18185 Qpdf Project Qpdf: out-of-bounds read
- Feb 13, 2018CVE-2017-18184 Qpdf Project Qpdf: out-of-bounds read
Questions about CVE-2021-36978
Is CVE-2021-36978 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 1.27% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Qpdf Project Qpdf are affected by CVE-2021-36978?
qpdf from 9.0.0 through 9.1.1 and qpdf from 10.0.0 through 10.0.4, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-36978?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2021-36978?
Medium (5.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-36978?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.