CVE-2023-36464
Infinite Loop when a comment isn't followed by a character in pypdf
MEDIUM 6.2
En bref
- Source
- NVD
- EPSS
- EPSS 0.35 % · centile 29 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Modified
Description
pypdf is an open source, pure-python PDF library. In affected versions an attacker may craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. That is, for example, the case if the user extracted text from such a PDF. This issue was introduced in pull request #969 and resolved in pull request #1828. Users are advised to upgrade. Users unable to upgrade may modify the line `while peek not in (b"\r", b"\n")` in `pypdf/generic/_data_structures.py` to `while peek not in (b"\r", b"\n", b"")`.
Faiblesses (CWE)
- CWE-835 — Boucle dont la condition de sortie est inatteignable (boucle infinie)
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-4vvm-4w3v-6mr8 — pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character
- PYSEC-2026-1835 — pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character
- PYSEC-2026-3008 — pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character
Références européennes
- ENISA EUVD · EUVD-2023-1690
- GCVE · GCVE-0-2023-36464
Configurations affectées (CPE NVD)
cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*< 3.9.0cpe:2.3:a:pypdf2_project:pypdf2:*:*:*:*:*:*:*:*≥ 2.2.0
Produits affectés
| Produit | Versions |
|---|---|
| py-pdf · pypdf | affected pypdf: < 3.90 ; affected PyPDF2: >= 2.2.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |