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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (10th 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 ID SNYK-PYTHON-DEEPLAKE-7430279
  • published 8 Jul 2024
  • disclosed 4 Jul 2024
  • credit Natan Nehorai

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
Expand this section

Snyk

Recommended
9.2 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Partial
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None