CVE-2023-38678: PaddlePaddle PaddlePaddle Segfault Vulnerability
MODERATECVE-2023-38678 is a MODERATE (CVSS 4.7) paddlepaddle segfault vulnerability (CWE-125: Out-of-bounds Read) affecting PaddlePaddle libraries in the PyPI ecosystem. The issue involves paddlepaddle segfault in paddle.mode. Remediation is available by upgrading affected packages to version 2.6.0.
CVE-2023-38678 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-38678
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-38678, 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. 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-38678 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-38678?
Which PaddlePaddle versions are affected?
What version fixes CVE-2023-38678?
Is PaddlePaddle affected?
What is the CVSS score of CVE-2023-38678?
What CWE is associated with CVE-2023-38678?
How can I check PyPI dependencies for CVE-2023-38678?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mr78-v55p-7777",
"modified" : "2024-11-22T18:17:55Z",
"published" : "2024-01-03T09:30:32Z",
"aliases" : [ "CVE-2023-38678" ],
"summary" : "PaddlePaddle segfault in paddle.mode",
"details" : "OOB access in paddle.mode 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-38678"
}, {
"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-010.md"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2024-133.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-03T21:52:17Z",
"nvd_published_at" : "2024-01-03T09:15:08Z"
}
}