CVE-2024-42358Loop with Unreachable Exit Condition ('Infinite Loop') in pdfio
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ippsample | Fix pending | UBUNTU-CVE-2024-42358 | |
| Ubuntu 26.04 | ippsample | Under investigation | UBUNTU-CVE-2024-42358 | |
| Ubuntu 25.10 | ippsample | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-42358 | |
| Ubuntu 24.04 | ippsample | Under investigation | UBUNTU-CVE-2024-42358 | |
| Ubuntu 22.04 | ippsample | Under investigation | UBUNTU-CVE-2024-42358 | |
| Ubuntu 20.04 | ippsample | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-42358 | |
| Ubuntu 18.04 | ippsample | Fix pending | UBUNTU-CVE-2024-42358 | |
| Debian 14 | ippsample | Fixed | 0.0~git20220215.f365352-1 | DEBIAN-CVE-2024-42358 |
| Debian 12 | ippsample | Fixed | 0.0~git20220215.f365352-1 | DEBIAN-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.
- michaelrsweet pdfio: affected: < 1.3.1
References
- https://github.com/michaelrsweet/pdfio/security/advisories/GHSA-4hh9-j68x-8353
- https://github.com/michaelrsweet/pdfio/commit/e4e1c39578279386b0ab9f9ac14b20a8bad4f935
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.