Intel

AIKIDO-2024-10331

torchgeo is vulnerable to Command Injection

Command InjectionCVE-2024-49048 Published Oct 11, 2024

92

Critical Risk

This Affects:

pythontorchgeo
0.4.0 - 0.6.0
Fixed in 0.6.1
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to command injection through the use of eval in the get_weight function, where user input is not properly sanitized. This allows attackers to execute arbitrary code by injecting malicious input.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

torchgeo is vulnerable to Command Injection in versions 0.4.0 - 0.6.0.

How to fix this

Upgrade the torchgeo library to the patch version.