Skip to content
HighVulnerability

GHSA-ghq9-vc6f-8qjf: TorchGeo Remote Code Execution Vulnerability

Published
Record updated
View JSON
Affected
  • torchgeo >= 0.4, <= 0.6.0
Fixed in
0.6.1
  • released October 10, 2024, 538 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.2%

Summary

TorchGeo versions 0.4 through 0.6.0 used an `eval` statement in its model weight API, which could let an unauthenticated remote attacker execute arbitrary commands. Platforms exposing `torchgeo.models.get_weight()` or `torchgeo.trainers` as an external API could be affected.

Mitigation

The `eval` statement was replaced with a fixed enum lookup. Users are encouraged to upgrade to TorchGeo 0.6.1 or newer. In unpatched versions, input validation and sanitization can be used to avoid the vulnerability.