Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. torchgeo
  4. ›
  5. CVE-2024-49048

CVE-2024-49048: TorchGeo Remote Code Execution Vulnerability

April 1, 2026

TorchGeo 0.4–0.6.0 used an eval statement in its model weight API that could allow an unauthenticated, remote attacker to execute arbitrary commands. All platforms that expose torchgeo.models.get_weight() or torchgeo.trainers as an external API could be affected.

References

  • github.com/advisories/GHSA-ghq9-vc6f-8qjf
  • github.com/microsoft/torchgeo/releases/tag/v0.6.1
  • github.com/pypa/advisory-database/tree/main/vulns/torchgeo/PYSEC-2024-204.yaml
  • github.com/torchgeo/torchgeo
  • github.com/torchgeo/torchgeo/commit/1a980788cb7089a1115f3b786c7daa9dd47d7d7a
  • github.com/torchgeo/torchgeo/pull/2323
  • github.com/torchgeo/torchgeo/pull/917
  • github.com/torchgeo/torchgeo/security/advisories/GHSA-ghq9-vc6f-8qjf
  • msrc.microsoft.com/update-guide/vulnerability/CVE-2024-49048
  • nvd.nist.gov/vuln/detail/CVE-2024-49048

Code Behaviors & Features

Detect and mitigate CVE-2024-49048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.4 before 0.6.1

Fixed versions

  • 0.6.1

Solution

Upgrade to version 0.6.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/torchgeo/CVE-2024-49048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:07 +0000.