CVE-2024-4141 in Xpdf and 1 more product
Out-of-bounds array write in Xpdf 4.05 and earlier, triggered by an invalid character code in a Type 1 font. The root problem was a bounds check that was being optimized away by modern compilers.
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Xpdf | Xpdf | < 4.05 |
| Xpdfreader | Xpdf | ≤ 4.05 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Out-of-bounds array write in Xpdf 4.05 and earlier, triggered by an invalid character code in a Type 1 font. The root problem was a bounds check that was being optimized away by modern compilers.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-4141 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-217571-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Published | 2024-04-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
CVE-2024-4141 involves an out-of-bounds array write vulnerability in Xpdf 4.05 and earlier, caused by an invalid character code in a Type 1 font. This issue arises due to a bounds check being optimized away by modern compilers, potentially leading to memory corruption and arbitrary code execution.
An attacker can exploit this vulnerability by crafting a malicious PDF file containing a Type 1 font with an invalid character code. When the vulnerable version of Xpdf processes this file, it may write data outside the bounds of an array, leading to memory corruption. This could be exploited to execute arbitrary code with the privileges of the user running Xpdf.
Questions
What is CVE-2024-4141?
CVE-2024-4141 involves an out-of-bounds array write vulnerability in Xpdf 4.05 and earlier, caused by an invalid character code in a Type 1 font. This issue arises due to a bounds check being optimized away by modern compilers, potentially leading to memory corruption and arbitrary code execution.
What is the CVSS score for CVE-2024-4141?
CVE-2024-4141 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.2%.
Is CVE-2024-4141 actively exploited?
No confirmed active exploitation of CVE-2024-4141 as of 2026-09-25.
How do I remediate CVE-2024-4141?
Priority: MEDIUM. Advisory: https://www.xpdfreader.com/security-bug/CVE-2024-4141.html PSIRT: [email protected]
What systems are affected by CVE-2024-4141?
CVE-2024-4141 affects Xpdf Xpdf; Xpdfreader Xpdf.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Xpdf","product":"Xpdf","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.