Skip to content
Heist/ feed
Back to feed
Low

pypdf: Unvalidated JPEG image data loading

Type: advisorySources: Official CVE List

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.

Products
pypdf
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-113786
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 16:33 UTC · Revision 2

Source evidence

pypdf: Unvalidated JPEG image data loading

core-cve · Original source

Published 21 Oct 2026, 14:38 UTC

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.

cve:CVE-2026-113786

pypdf

Fixed versions: Not specified

Complete source record
{
  "id": "672c46a32d252f27a01249e106acd76bacf12297c269bec4bb11c1b1b366947b",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-113786",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pypdf: Unvalidated JPEG image data loading",
    "summary": "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.",
    "evidence": "cve:CVE-2026-113786",
    "products": [
      {
        "name": {
          "value": "pypdf",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-113786",
      "aliases": [
        "CVE-2026-113786"
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 2.3,
            "attackVector": "NETWORK",
            "baseSeverity": "LOW",
            "vectorString": "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",
            "userInteraction": "PASSIVE",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "LOW",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE"
          }
        }
      ],
      "affected": [
        {
          "vendor": "py-pdf",
          "product": "pypdf",
          "versions": [
            {
              "status": "affected",
              "version": "< 6.21.1"
            }
          ]
        }
      ],
      "modified": "2026-10-27T22:18:57.010Z",
      "provider": "cve",
      "references": [
        "https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv",
        "https://github.com/py-pdf/pypdf/pull/4222",
        "https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07",
        "https://github.com/py-pdf/pypdf/releases/tag/6.21.1"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-113786",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-27T22:18:44.657835Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-27T22:18:57.010Z"
            }
          }
        ],
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-21T14:38:39.617Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-113786",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 400734,
  "published_at": "2026-10-21T14:38:39.617+00:00"
}