CVEfocus › CVE database › CVE-2024-42358

CVE-2024-42358Loop with Unreachable Exit Condition ('Infinite Loop') in pdfio

CVSS 6.2 MediumEPSS 0.3% (higher than 16% of CVEs)Published 2024-08-06Updated 2024-08-06Assigner: 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.

CWE-835

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ippsampleFix pendingUBUNTU-CVE-2024-42358
Ubuntu 26.04ippsampleUnder investigationUBUNTU-CVE-2024-42358
Ubuntu 25.10ippsampleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-42358
Ubuntu 24.04ippsampleUnder investigationUBUNTU-CVE-2024-42358
Ubuntu 22.04ippsampleUnder investigationUBUNTU-CVE-2024-42358
Ubuntu 20.04ippsampleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-42358
Ubuntu 18.04ippsampleFix pendingUBUNTU-CVE-2024-42358
Debian 14ippsampleFixed0.0~git20220215.f365352-1DEBIAN-CVE-2024-42358
Debian 12ippsampleFixed0.0~git20220215.f365352-1DEBIAN-CVE-2024-42358

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.