Home / michaelrsweet / pdfio / CVE-2024-42358
CVE-2024-42358: is it exploited, and which versions of michaelrsweet pdfio are affected and fixed?
CVE-2024-42358 is an infinite loop (denial of service) vulnerability in michaelrsweet pdfio. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: pdfio < 1.3.1 (CVE record by GitHub_M). Fixed in 1.3.1 (NVD). Severity: Medium (6.2, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:27 UTC.
What is CVE-2024-42358?
Loop 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.
From the CVE record by GitHub_M, last updated August 6, 2024, 18:34 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| michaelrsweet | pdfio | < 1.3.1 |
As the CVE record by GitHub_M states it, last updated August 6, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| msweet | pdfio | before 1.3.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:49 UTC.
How severe is CVE-2024-42358?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.2 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-42358 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, August 6, 2024)
- EPSS
- 0.32% probability of exploitation activity in the next 30 days, percentile 27.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-835 Loop with Unreachable Exit Condition
Where are the vendor advisories and references?
- https://github.com/michaelrsweet/pdfio/security/advisories/GHSA-4hh9-j68x-8353 x_refsource_CONFIRM
- https://github.com/michaelrsweet/pdfio/commit/e4e1c39578279386b0ab9f9ac14b20a8bad4f935 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 30, 2024
- Published
- August 6, 2024, 17:02 UTC
- CVE record updated
- August 6, 2024, 18:34 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:49 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:27 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pdfio?
- Nov 27, 2026CVE-2026-137937 michaelrsweet pdfio: integer underflow
- Aug 21, 2026CVE-2026-77220 michaelrsweet pdfio: expired Pointer Dereference
- Mar 20, 2023CVE-2023-28428 michaelrsweet pdfio: denial of service (resources allocated without limits)
- Feb 7, 2023CVE-2023-24808 michaelrsweet pdfio: infinite loop (denial of service)
Questions about CVE-2024-42358
Is CVE-2024-42358 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of michaelrsweet pdfio are affected by CVE-2024-42358?
pdfio < 1.3.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2024-42358?
1.3.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-42358?
Medium (6.2, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-42358?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.