Vulnerabilities in pkg:pypi/PaddlePaddle

PACKAGE
Advisory Identifier: GHSA-qppw-c37g-xwcc
Advisory Summary

CVE-2023-52312 is a MODERATE (CVSS 4.7) paddlepaddle nullptr dereference vulnerability (CWE-476: NULL Pointer Dereference) affecting PaddlePaddle libraries in the PyPI ecosystem. The issue involves paddlepaddle nullptr dereference in paddle.crop. Remediation is available by upgrading affected packages to version 2.6.0.

16 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/PaddlePaddle

16 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/PaddlePaddle. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qppw-c37g-xwcc CVE-2023-52312 MODERATE PaddlePaddle nullptr dereference in paddle.crop
GHSA-3cr5-2446-8pg3 CVE-2023-52314 CRITICAL PaddlePaddle command injection in convert_shape_compare
GHSA-275c-w5mq-v5m2 CVE-2023-52313 MODERATE PaddlePaddle floating point exception in paddle.argmin and paddle.argmax
GHSA-rf7p-79xq-8xwm CVE-2023-52311 CRITICAL PaddlePaddle command injection in _wget_download
GHSA-j5h9-9r39-43q5 CVE-2023-52310 CRITICAL PaddlePaddle command injection in get_online_pass_interval
GHSA-8fp7-jwv2-49x9 CVE-2023-52309 HIGH PaddlePaddle heap buffer overflow in paddle.repeat_interleave
GHSA-v9pg-qw6x-w5r2 CVE-2023-52308 MODERATE PaddlePaddle floating point exception in paddle.amin
GHSA-g57v-2687-jx33 CVE-2023-52307 HIGH PaddlePaddle stack overflow in paddle.linalg.lu_unpack
GHSA-rg9q-m8hv-xxr6 CVE-2023-52306 MODERATE PaddlePaddle floating point exception in paddle.lerp
GHSA-xjpw-hx47-rccv CVE-2023-38674 MODERATE PaddlePaddle floating point exception in paddle.nanmedian
GHSA-jm68-fpmr-8j2g CVE-2023-38675 MODERATE PaddlePaddle floating point exception in paddle.linalg.matrix_rank
GHSA-x3q9-c788-j7c8 CVE-2023-38676 MODERATE PaddlePaddle segfault in paddle.dot
GHSA-mr78-v55p-7777 CVE-2023-38678 MODERATE PaddlePaddle segfault in paddle.mode
GHSA-547m-23x7-cxg5 CVE-2023-52302 MODERATE PaddlePaddle null pointer dereference in paddle.nextafter
GHSA-4rrv-8gcp-24v8 CVE-2023-52304 HIGH PaddlePaddle stack overflow in paddle.searchsorted
GHSA-rx2r-q96c-w5cc CVE-2023-52305 MODERATE PaddlePaddle floating point exception in paddle.topk

CVE-2023-52312 at a Glance

CVE Identifier CVE-2023-52312
GHSA Identifier GHSA-qppw-c37g-xwcc
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product PaddlePaddle
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2023-52312

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.

PaddlePaddle fixed: 2.6.0
pip install PaddlePaddle>=2.6.0
Verify Direct and Transitive Dependencies

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-52312, 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

Nullptr dereference in paddle.crop in PaddlePaddle before 2.6.0. This flaw can cause a runtime crash and a denial of service.

CVE-2023-52312 Affected PaddlePaddle Versions

1 component(s)
Fixed Versions:
2.6.0
Product / Package Ecosystem Affected Versions Fixed Version
PaddlePaddle
PyPI
< 2.6.0
2.6.0

References

Frequently Asked Questions

What is CVE-2023-52312?
CVE-2023-52312 is a security vulnerability in PaddlePaddle involving PaddlePaddle nullptr dereference in paddle.crop under CWE-476: NULL Pointer Dereference.
Which PaddlePaddle versions are affected?
Affected versions include releases prior to 2.6.0 across affected packages: PaddlePaddle.
What version fixes CVE-2023-52312?
Upgrading to 2.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is PaddlePaddle affected?
Yes, PaddlePaddle is affected in releases prior to 2.6.0. Upgrade your dependency to 2.6.0 or later.
What is the CVSS score of CVE-2023-52312?
CVE-2023-52312 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:L.
What CWE is associated with CVE-2023-52312?
CVE-2023-52312 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check PyPI dependencies for CVE-2023-52312?
Run the dependency tree command: 'pip show PaddlePaddle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qppw-c37g-xwcc",
  "modified" : "2024-11-22T20:22:49Z",
  "published" : "2024-01-03T09:30:33Z",
  "aliases" : [ "CVE-2023-52312" ],
  "summary" : "PaddlePaddle nullptr dereference in paddle.crop",
  "details" : "Nullptr dereference in paddle.crop 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-52312"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PaddlePaddle/Paddle/commit/488a0ddc322b24659b6b0067fea3030d2f013cf4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/PaddlePaddle/Paddle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2023-021.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2024-144.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T22:02:40Z",
    "nvd_published_at" : "2024-01-03T09:15:10Z"
  }
}