Intel

AIKIDO-2024-10480

deepspeed is vulnerable to Eval Injection

Eval Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

15

Low Risk

This Affects:

pythondeepspeed
0.1.0 - 0.15.4
Fixed in 0.16.0

TL;DR

Affected versions of this package are vulnerable to eval injection in the BingBertSquad test script. This occurs because the script does not properly sanitize user input before passing it to the eval() function. As a result, an attacker can execute arbitrary code by injecting malicious input. This vulnerability allows attackers to take control of the application, potentially leading to unauthorized access, data breaches, or further exploitation of the underlying system.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges

Background info

deepspeed is vulnerable to Eval Injection in versions 0.1.0 - 0.15.4.

How to fix this

Upgrade the deepspeed library to the patch version.