---
id: "CVE-2024-0521"
page: "https://infrastack.ai/live/CVE-2024-0521"
kind: "vulnerability"
aliases: ["CVE-2024-0521", "GHSA-chj7-w3f6-cvfj"]
title: "Code Injection in paddlepaddle"
severity: "critical"
cvss: 9.3
epss: 0.0046
exploited: false
status: "open"
category: "package"
products: [{"name": "paddlepaddle", "fixed": ["2.6.0"], "affected": "< 2.6.0", "ecosystem": "pypi"}, {"name": "paddlepaddle paddle", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-94", "ml", "package", "paddlepaddle", "python"]
not_affected_if: ["pinned-2.6.0-or-later", "trusted-urls-only"]
published_at: "2024-01-20T21:15:43+00:00"
first_seen_at: "2026-11-16T15:53:12+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-chj7-w3f6-cvfj", "first_seen_at": "2026-11-16T15:53:12+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-0521", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.0046, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-0521"}]
---

# Code Injection in paddlepaddle

Link for people: https://infrastack.ai/live/CVE-2024-0521 (this .md is for agents)

PaddlePaddle builds a shell command string from a url parameter without validating it. An attacker who controls that URL can inject extra commands that run on the machine.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:paddlepaddle affected < 2.6.0 fixed 2.6.0
- vendor:paddlepaddle paddle affected range not listed fixed no fixed version listed

## How to check

- Run `pip show paddlepaddle` and compare the version with `2.6.0`
- Search your code for calls that pass URLs taken from users or external sources into PaddlePaddle utilities

## Fix

- paddlepaddle: upgrade to `2.6.0`

## Timeline

- 2026-11-16T15:53:12+00:00 ghsa https://github.com/advisories/GHSA-chj7-w3f6-cvfj
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-0521

## Documents

- [fix] Patch: huntr.com https://huntr.com/bounties/a569c64b-1e2b-4bed-a19f-47fd5a3da453

## From the sources

The vulnerability arises from the way the url parameter is incorporated into the command string without proper validation or sanitization. If the url is constructed from untrusted sources, an attacker could potentially inject malicious commands.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
