Vulnerabilities in pkg:pypi/gluoncv
PACKAGECVE-2024-12216 is a HIGH (CVSS 7.1) gluoncv arbitrary file write vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Gluoncv libraries in the PyPI ecosystem. The issue involves gluoncv arbitrary file write via tarslip. Remediation is available in the latest vendor maintenance releases.
pkg:pypi/gluoncv
Vulnerability advisories affecting package pkg:pypi/gluoncv. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m724-hqmc-ggpx | CVE-2024-12216 | HIGH | GluonCV Arbitrary File Write via TarSlip |
CVE-2024-12216 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H).
How to Fix CVE-2024-12216
To remediate this vulnerability, upgrade all affected Gluoncv dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install gluoncv>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show gluoncv
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-12216, inspect your installed packages using pip:
pip show gluoncv
Analyze the terminal output to locate any version of Gluoncv in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show gluoncv command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Gluoncv, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-12216 Affected Gluoncv Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gluoncv
|
PyPI |
≤ 0.10.0
|
|
References
Frequently Asked Questions
What is CVE-2024-12216?
Which Gluoncv versions are affected?
What version fixes CVE-2024-12216?
Is gluoncv affected?
What is the CVSS score of CVE-2024-12216?
What CWE is associated with CVE-2024-12216?
How can I check PyPI dependencies for CVE-2024-12216?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m724-hqmc-ggpx",
"modified" : "2025-03-21T17:03:33Z",
"published" : "2025-03-20T12:32:42Z",
"aliases" : [ "CVE-2024-12216" ],
"summary" : "GluonCV Arbitrary File Write via TarSlip",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "gluoncv"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.10.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-12216"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dmlc/gluon-cv"
}, {
"type" : "WEB",
"url" : "https://github.com/dmlc/gluon-cv/blob/3862e2db33ab650eff7c7c5c5891e805207027b1/gluoncv/utils/filesystem.py#L223-L229"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/46081fdc-2951-4deb-a2c9-2627007bdce0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-22", "CWE-59" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-21T17:03:33Z",
"nvd_published_at" : "2025-03-20T10:15:27Z"
}
}