Skip to content

pdfio

Loop with Unreachable Exit Condition ('Infinite Loop') in pdfio

CVE-2024-42358Published 6 Aug 2024, 17:02 UTC

Real-world risk

1.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.2

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

PDFio is a simple C library for reading and writing PDF files. There is a denial of service (DOS) vulnerability in the TTF parser. Maliciously crafted TTF files can cause the program to utilize 100% of the Memory and enter an infinite loop. This can also lead to a heap-buffer-overflow vulnerability. An infinite loop occurs in the read_camp function by nGroups value. The ttf.h library is vulnerable. A value called nGroups is extracted from the file, and by changing that value, you can cause the program to utilize 100% of the Memory and enter an infinite loop. If the value of nGroups in the file is small, an infinite loop will not occur. This library, whether used as a standalone binary or as part of another application, is vulnerable to DOS attacks when parsing certain types of files. Automated systems, including web servers that use this code to convert PDF submissions into plaintext, can be DOSed if an attacker uploads a malicious TTF file. This issue has been addressed in release version 1.3.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pdfioNiche< 1.3.11.3.1
pdfioNiche< 1.3.11.3.1

What to do

Update to a fixed version: 1.3.1.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • CISA SSVC: proof of concept

EPSS 0.3% chance of exploitation in 30 days (percentile 27), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.500
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.4 × prerequisites 0.5 × threat 0.951.900
  4. Rounded to one decimal between 0.1 and 101.9

How the score works

Exploitation and evidence timeline

  1. 6 Aug 2024 Published
  2. 3 Dec 2026 CISA SSVC: proof of concept first seen
  3. 3 Dec 2026 Risk 1.9 (cvss fallback)

Weakness

CWE-835

References

Get alerts for pdfio

Free email or text alerts when a vulnerability in pdfio reaches risk 8 or higher. Nothing else.