# CVE-2021-36978: QPDF 9.x through 9.1.1 and 10.x through 10.0.4 has a heap-based buffer overflow in PlASCII85Decoder::write (called from PlAESPDF::flush and…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-07-20T00:00:00.000Z
- Modified: 2026-06-17T03:59:45.627Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- qpdf_project qpdf: from 9.0.0 up to 9.1.1; from 10.0.0 up to 10.0.4

## Every score

- NVD: CVSS: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: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/qpdf/qpdf/issues/492>
- <https://github.com/qpdf/qpdf/commit/dc92574c10f3e2516ec6445b88c5d584f40df4e5> (patch, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/qpdf/OSV-2020-2245.yaml> (third-party-advisory)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28262> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/08/msg00037.html> (mailing-list)
- <https://security.gentoo.org/glsa/202401-20> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-36978](https://www.cve.org/CVERecord?id=CVE-2021-36978), CVE Terms of Use, modified 2024-10-15
- NVD: [CVE-2021-36978](https://nvd.nist.gov/vuln/detail/CVE-2021-36978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-36978 · Whole record: https://cve.day/CVE-2021-36978.json · Rebuilt by cve.day 2026-11-25T22:58:02.738Z
