CVE-2024-51058 TCPDF Local File Inclusion vulnerability
An attacker can read arbitrary files from the server via a Local File Inclusion vulnerability in the TCPDF library, exposing sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-51058?
CVE-2024-51058 is a medium-severity path traversal vulnerability in n/a, published on 26 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-552
Which versions are affected by CVE-2024-51058?
2 open source packages ship an affected version, including tecnickcom/tcpdf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tecnickcom/tcpdf Packagist | All versions | 6.7.6 |
tecnickcom/tcpdf Packagist | All versions | 6.7.6 |
Products include Tcpdf Project Tcpdf.
How do I fix CVE-2024-51058?
Upgrade tecnickcom/tcpdf to 6.7.6 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-51058 being exploited?
There is no known exploitation of CVE-2024-51058 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2024-51058, GHSA-rmv2-8jjc-23xw, UBUNTU-CVE-2024-51058.