Skip to main content
VulnerabilityPublished Updated

CVE-2024-51058: TCPDF · Exposed Files or Directories

Affects TCPDFSource CVE Database V5

0

Not known to be exploited · CVSS 6.2 Medium.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Nov 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubtecnickcom/TCPDFpkg:github/tecnickcom/TCPDFOther threatsAffected
  • =6.7.5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Apply patches or updates from the TCPDF project once available to address CVE-2024-51058.
  2. 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.
  3. Employ allowlisting for image sources, restricting inputs to trusted directories or URLs.
  4. Use web application firewalls (WAFs) to detect and block suspicious requests attempting to exploit LFI patterns.
  5. Conduct code reviews and security testing focusing on file inclusion and path traversal vulnerabilities in PDF generation modules.
  6. Monitor logs for unusual file access patterns or errors related to file inclusion attempts.
  7. Limit file system permissions of the web server process to minimize accessible files, reducing potential data exposure.
  8. 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

Community reviews

Loading reviews…