CVE-2024-51058: TCPDF · Exposed Files or Directories
Affects TCPDFSource CVE Database V5
Not known to be exploited · CVSS 6.2 Medium.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubtecnickcom/TCPDFpkg:github/tecnickcom/TCPDFOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Apply patches or updates from the TCPDF project once available to address CVE-2024-51058.
- Until a patch is released, implement strict input validation and sanitization on all user-supplied data used in <img> src attributes within PDF generation workflows to prevent inclusion of arbitrary file paths.
- Employ allowlisting for image sources, restricting inputs to trusted directories or URLs.
- Use web application firewalls (WAFs) to detect and block suspicious requests attempting to exploit LFI patterns.
- Conduct code reviews and security testing focusing on file inclusion and path traversal vulnerabilities in PDF generation modules.
- Monitor logs for unusual file access patterns or errors related to file inclusion attempts.
- Limit file system permissions of the web server process to minimize accessible files, reducing potential data exposure.
- Educate developers on secure coding practices regarding file handling and user input.
Description
Local File Inclusion (LFI) vulnerability has been discovered in TCPDF 6.7.5. This vulnerability enables a user to read arbitrary files from the server's file system through <img> src tag, potentially exposing sensitive information.
References
- github.com/tecnickcom/TCPDF (opens in a new tab)
- github.com/tecnickcom/TCPDF/commit/bfa7d2b6d455ebf72ebe3d48fbd487ee5a1f6f3b (opens in a new tab)
- github.com/saravana-hackz/vulnerability-research/tree/main/CVE-2024-51058 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/06/msg00004.html (opens in a new tab)