CVE-2024-12216 Arbitrary File Write via TarSlip in dmlc/gluon-cv

High 7.1 Published Updated

Attackers can overwrite arbitrary files on the victim's system by providing malicious tar archives to the dataset loading API.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-12216?

CVE-2024-12216 is a high-severity path traversal vulnerability in dmlc/gluon-cv, published on 20 Mar 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A vulnerability in the `ImageClassificationDataset.from_csv()` API of the `dmlc/gluon-cv` repository, version 0.10.0, allows for arbitrary file write. The function downloads and extracts `tar.gz` files from URLs without proper sanitization, making it susceptible to a TarSlip vulnerability. Attackers can exploit this by crafting malicious tar files that, when extracted, can overwrite files on the victim's system via path traversal or faked symlinks.

Weakness: CWE-59

Which versions are affected by CVE-2024-12216?

3 open source packages ship an affected version, including gluoncv.

PackageAffectedFixed in
gluoncv PyPIAll versions to 0.10.0None
gluoncv PyPIAll versions to 0.10.0None
gluoncv PyPIAll versions to 0.10.0None

How do I fix CVE-2024-12216?

No fix has been published for CVE-2024-12216 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-12216 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12216 exists.

Sources

Also known as GHSA-m724-hqmc-ggpx, PYSEC-2026-1406.

Is CVE-2024-12216 in your software?

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

Check your SBOMs for free