GHSA-fh54-3vhg-mpc2 CVE-2024-0817 PYSEC-2026-1754
PaddlePaddle command injection vulnerability
- Severity
- 7.8 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 1.17%
- Chance of exploitation in the next 30 days. Higher than 67.34% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
- Fix
3.0.0-beta0- Upgrade paddlepaddle to this version or later
Description
Command injection in IrGraph.draw in paddlepaddle/paddle 2.6.0
Affected versions
PyPI
| Package | Vulnerable | Fixed in |
|---|---|---|
| paddlepaddle | <= 2.6.0 |
No fix yet |
| paddlepaddle | < 3.0.0-beta0 |
3.0.0-beta0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
paddlepaddle PyPI → 3.0.0-beta0
- pip
pip install --upgrade "paddlepaddle>=3.0.0-beta0"- poetry
poetry add "paddlepaddle>=3.0.0-beta0"- uv
uv add "paddlepaddle>=3.0.0-beta0"
Severity breakdown
CVSS 3.1 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
How to prevent it
- Architecture and Design: If at all possible, use library calls rather than external processes to recreate the desired functionality.
- Implementation: If possible, ensure that all external commands called from the program are statically created.
- Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- Operation: Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
- System Configuration: Assign permissions that prevent the user from accessing/opening privileged files.
References
Advisories
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-jwrc-3v3f-5cq5 PaddlePaddle allows arbitrary file read via paddle.vision.ops.read_file | High | Also affects paddlepaddle |
| GHSA-2rp8-hff9-c5wr PaddlePaddle Path Traversal vulnerability | Critical | Also affects paddlepaddle |
| GHSA-mrmm-qmrj-xgp6 PaddlePaddle vulnerable to remote code execution | Critical | Also affects paddlepaddle |
| GHSA-qqv2-35q8-p2g2 PaddlePaddle command injection in paddle.utils.download._wget_download | High | Also affects paddlepaddle |
| GHSA-chj7-w3f6-cvfj Code Injection in paddlepaddle | High | Also affects paddlepaddle |
| GHSA-v9pg-qw6x-w5r2 PaddlePaddle floating point exception in paddle.amin | High | Also affects paddlepaddle |
| GHSA-x3q9-c788-j7c8 PaddlePaddle segfault in paddle.dot | High | Also affects paddlepaddle |
| GHSA-xjpw-hx47-rccv PaddlePaddle floating point exception in paddle.nanmedian | High | Also affects paddlepaddle |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor