CVE-2023-52302: PaddlePaddle PaddlePaddle Null Pointer Dereference Vulnerability
MODERATECVE-2023-52302 is a MODERATE (CVSS 4.7) paddlepaddle null pointer dereference vulnerability (CWE-476: NULL Pointer Dereference) affecting PaddlePaddle libraries in the PyPI ecosystem. The issue involves paddlepaddle null pointer dereference in paddle.nextafter. Remediation is available by upgrading affected packages to version 2.6.0.
CVE-2023-52302 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-52302
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-52302, 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-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. 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-52302 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-52302?
Which PaddlePaddle versions are affected?
What version fixes CVE-2023-52302?
Is PaddlePaddle affected?
What is the CVSS score of CVE-2023-52302?
What CWE is associated with CVE-2023-52302?
How can I check PyPI dependencies for CVE-2023-52302?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-547m-23x7-cxg5",
"modified" : "2024-11-22T18:17:42Z",
"published" : "2024-01-03T09:30:32Z",
"aliases" : [ "CVE-2023-52302" ],
"summary" : "PaddlePaddle null pointer dereference in paddle.nextafter",
"details" : "Nullptr in paddle.nextafter 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-52302"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/commit/19da5c0c4d8c5e4dfef2a92e24141c3f51884dcc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PaddlePaddle/Paddle"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2023-011.md"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2024-134.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-476" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-03T20:10:38Z",
"nvd_published_at" : "2024-01-03T09:15:09Z"
}
}