Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.1, an attacker can craft a PDF containing image data labeled with the /DCTDecode filter that causes Pillow to select and invoke an unintended image parser when the image is loaded. Environments without the optional Pillow dependency are not affected. This issue is fixed in version 6.21.1.
Published: 2026-10-21
Score: 2.3 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5hx5-vpf9-5wcv pypdf: Unvalidated JPEG image data loading
History

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.21.1, an attacker can craft a PDF containing image data labeled with the /DCTDecode filter that causes Pillow to select and invoke an unintended image parser when the image is loaded. Environments without the optional Pillow dependency are not affected. This issue is fixed in version 6.21.1.
Title pypdf: Unvalidated JPEG image data loading
Weaknesses CWE-183
CWE-20
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-21T14:38:39.617Z

Reserved: 2026-10-20T17:39:41.372Z

Link: CVE-2026-113786

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-21T15:17:16.703

Modified: 2026-10-21T15:17:16.703

Link: CVE-2026-113786

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T20:30:13Z

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs

  • CWE-20

    Improper Input Validation