CVE-2023-38674: PaddlePaddle PaddlePaddle Floating Point Exception Vulnerability
MODERATECVE-2023-38674 is a MODERATE (CVSS 4.7) paddlepaddle floating point exception vulnerability (CWE-369: Divide By Zero) affecting PaddlePaddle libraries in the PyPI ecosystem. The issue involves paddlepaddle floating point exception in paddle.nanmedian. Remediation is available by upgrading affected packages to version 2.6.0.
CVE-2023-38674 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L).
How to Fix CVE-2023-38674
To remediate this vulnerability, upgrade all affected PaddlePaddle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install PaddlePaddle>=2.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show PaddlePaddle
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-38674, inspect your installed packages using pip:
pip show PaddlePaddle
Analyze the terminal output to locate any version of PaddlePaddle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.0), your application is affected.
Note: The pip show PaddlePaddle command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-369: Divide By Zero, where the product divides a value by zero. In PaddlePaddle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-38674 Affected PaddlePaddle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
PaddlePaddle
|
PyPI |
< 2.6.0
|
2.6.0
|
References
Frequently Asked Questions
What is CVE-2023-38674?
Which PaddlePaddle versions are affected?
What version fixes CVE-2023-38674?
Is PaddlePaddle affected?
What is the CVSS score of CVE-2023-38674?
What CWE is associated with CVE-2023-38674?
How can I check PyPI dependencies for CVE-2023-38674?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xjpw-hx47-rccv",
"modified" : "2024-11-22T18:18:37Z",
"published" : "2024-01-03T09:30:31Z",
"aliases" : [ "CVE-2023-38674" ],
"summary" : "PaddlePaddle floating point exception in paddle.nanmedian",
"details" : "FPE in paddle.nanmedian in PaddlePaddle before 2.6.0. This flaw can cause a runtime crash and a denial of service.\n\n\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "PaddlePaddle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38674"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/commit/690ffe814dbfc5054d4e92df878687fd638fe3a5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PaddlePaddle/Paddle"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2023-006.md"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2024-129.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-369" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-03T20:00:45Z",
"nvd_published_at" : "2024-01-03T09:15:08Z"
}
}