Vulnerabilities in pkg:pypi/gluoncv

PACKAGE
Advisory Identifier: GHSA-m724-hqmc-ggpx
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/gluoncv

1 Known Advisory Record(s)

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

CVE Identifier CVE-2024-12216
GHSA Identifier GHSA-m724-hqmc-ggpx
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Gluoncv
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (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.

gluoncv fixed: Latest secure release
pip install gluoncv>=Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2024-12216 is a security vulnerability in Gluoncv involving GluonCV Arbitrary File Write via TarSlip under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Gluoncv versions are affected?
Affected versions include releases prior to current release patches across affected packages: gluoncv.
What version fixes CVE-2024-12216?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gluoncv affected?
Yes, gluoncv is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-12216?
CVE-2024-12216 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2024-12216?
CVE-2024-12216 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (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.).
How can I check PyPI dependencies for CVE-2024-12216?
Run the dependency tree command: 'pip show gluoncv'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}