CVE-2024-56519 TCPDF lacks SVG sanitization

High 7.5 Published Updated

Attackers can inject malicious scripts via unsanitized SVG font-family attributes in TCPDF, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-56519?

CVE-2024-56519 is a high-severity cross-site scripting vulnerability in tecnick tcpdf, published on 27 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in TCPDF before 6.8.0. setSVGStyles does not sanitize the SVG font-family attribute.

Weakness: CWE-79

Which versions are affected by CVE-2024-56519?

2 open source packages ship an affected version, including tecnickcom/tcpdf. It affects 1 product.

PackageAffectedFixed in
tecnickcom/tcpdf PackagistAll versions6.8.0
tecnickcom/tcpdf PackagistAll versions6.8.0

Products include Tcpdf Project Tcpdf.

How do I fix CVE-2024-56519?

Upgrade tecnickcom/tcpdf to 6.8.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-56519 being exploited?

There is no known exploitation of CVE-2024-56519 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2024-56519, GHSA-4p8j-vhjm-6pvw, UBUNTU-CVE-2024-56519.

Is CVE-2024-56519 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free