CVE-2023-38669: Paddlepaddle Use After Free Vulnerability
HIGHCVE-2023-38669 is a HIGH (CVSS 8.3) use after free vulnerability (CWE-416: Use After Free) affecting Paddlepaddle libraries in the PyPI ecosystem. The issue involves use after free in paddlepaddle. Remediation is available by upgrading affected packages to version 2.5.0.
CVE-2023-38669 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-38669
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.5.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-38669, 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.5.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-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. 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-38669 Affected Paddlepaddle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
paddlepaddle
|
PyPI |
< 2.5.0
|
2.5.0
|
References
Frequently Asked Questions
What is CVE-2023-38669?
Which Paddlepaddle versions are affected?
What version fixes CVE-2023-38669?
Is paddlepaddle affected?
What is the CVSS score of CVE-2023-38669?
What CWE is associated with CVE-2023-38669?
How can I check PyPI dependencies for CVE-2023-38669?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wfh-qxxv-3q8c",
"modified" : "2023-07-31T19:01:32Z",
"published" : "2023-07-26T12:30:28Z",
"aliases" : [ "CVE-2023-38669" ],
"summary" : "Use after free in PaddlePaddle",
"details" : "Use after free in paddle.diagonal in PaddlePaddle before 2.5.0. This resulted in a potentially exploitable condition.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "paddlepaddle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38669"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/commit/43981874f5e1683b855eab871092fa9be58d6a44"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PaddlePaddle/Paddle"
}, {
"type" : "WEB",
"url" : "https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2023-001.md"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2023-122.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-416" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-26T22:30:22Z",
"nvd_published_at" : "2023-07-26T10:15:11Z"
}
}