OS Command Injection Affecting paddlepaddle package, versions [,2.6.1)


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.05% (19th 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 OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PADDLEPADDLE-6419228
  • published8 Mar 2024
  • disclosed7 Mar 2024
  • creditNguyen Cong Vinh

Introduced: 7 Mar 2024

CVE-2024-0815  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade paddlepaddle to version 2.6.1 or higher.

Overview

paddlepaddle is a Parallel Distributed Deep Learning

Affected versions of this package are vulnerable to OS Command Injection due to improper input validation in the paddle.utils.download._wget_download function. An attacker can execute arbitrary commands by crafting malicious input that bypasses the filter.

Note: Depending on the context in which this code is used, this could lead to unauthorized access, data loss, or other potentially harmful consequences.

PoC


from paddle import utils
utils.download._wget_download("https://; sleep 10", "test") # will delay 10s

CVSS Scores

version 3.1