Advisory record · GHSA-4vvm-4w3v-6mr8

pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character

CVSS 6.2 MediumEPSS 0.0035 · 29th percentile

Published by the GitHub Advisory Database at 30 Jun 2023, 20:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pypdfPyPI>=3.1.0, <3.9.03.9.0
pypdf2PyPI>=2.2.0, <=3.0.1No fixed version yet
Identifiers
GHSA-4vvm-4w3v-6mr8 · CVE-2023-36464 · PYSEC-2026-1835 · PYSEC-2026-3008
Weakness (CWE)
CWE-835
Published
30 Jun 2023
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Two packages are affected: pypdf versions from 3.1.0 before 3.9.0, and pypdf2 versions from 2.2.0 through 3.0.1. An attacker who supplies a crafted PDF can cause an infinite loop when the content stream is parsed, pinning one CPU core at 100% and blocking the process, though memory use is not affected. Upgrade pypdf to 3.9.0 or later; no fixed version of pypdf2 is listed, so PyPDF2 users should migrate to pypdf.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.2 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0035, the 29th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 27 Jun 2023, 22:15 UTC Confirmed by NVD
  2. 31 Oct 2026, 14:36 UTC First seen by agentprime
  3. 31 Oct 2026, 14:36 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.