CVE-2024-51058: TCPDF Local File Inclusion vulnerability
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 src tag, potentially exposing sensitive information.
Published Nov 26, 2024 · Updated Nov 3, 2025
Affected packages
tecnickcom/tcpdf
- Ecosystem
- Composer (PHP)
- Affected
- <= 6.7.5
- Fixed in
- 6.7.6
- Check
composer show tecnickcom/tcpdf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 src tag, potentially exposing sensitive information.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-51058
- https://github.com/tecnickcom/TCPDF/commit/bfa7d2b6d455ebf72ebe3d48fbd487ee5a1f6f3b
- https://github.com/saravana-hackz/vulnerability-research/tree/main/CVE-2024-51058
- https://github.com/tecnickcom/TCPDF
- https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- https://github.com/advisories/GHSA-rmv2-8jjc-23xw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2024-56519
TCPDF lacks SVG sanitization
medium5.3Dec 27, 2024CVE-2024-56521
TCPDF missing certificate validation
high8.2Dec 27, 2024CVE-2024-56522
TCPDF has incorrect comparison
high7.5Dec 27, 2024CVE-2024-56527
TCPDF missing character escape on error messages
medium4.8Dec 27, 2024CVE-2024-22640
TCPDF vulnerable to Regular Expression Denial of Service
medium5.1Apr 19, 2024CVE-2024-32489
TCPDF Cross-site Scripting vulnerability
medium6.1Apr 15, 2024
