Skip to content
Heist/ feed
Back to feed
MediumFix available

pypdf2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-36807

pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.

Products
pypdf2
Affected versions
Not specified
Fixed versions
2.10.7-1
CVEs
CVE-2023-36807
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 16:23 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-36807

core-osv · Original source

Published 30 Jun 2023, 19:15 UTC

pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.

osv:DEBIAN-CVE-2023-36807

pypdf2

Fixed versions: 2.10.7-1

Complete source record
{
  "id": "4ca0164e02611b5ce1cb27622897716b8d377f54c2364fe656fecb25237ae0a3",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-36807",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-36807",
    "summary": "pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.",
    "evidence": "osv:DEBIAN-CVE-2023-36807",
    "products": [
      {
        "name": {
          "value": "pypdf2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.10.7-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-36807",
      "aliases": [
        "DEBIAN-CVE-2023-36807"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.10.7-1"
                }
              ]
            }
          ],
          "package": {
            "name": "pypdf2",
            "purl": "pkg:deb/debian/pypdf2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-36807.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:03:05.397329934Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-36807"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-36807"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-36807",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 457586,
  "published_at": "2023-06-30T19:15:09.283+00:00"
}