CVE-2023-38675
Python vulnerability analysis and mitigation

Overview

CVE-2023-38675 is a floating-point exception (FPE) vulnerability discovered in the paddle.linalg.matrix_rank function of PaddlePaddle versions prior to 2.6.0. The vulnerability was reported by Tong Liu of ShanghaiTech University and was disclosed on January 3, 2024 (NVD, Paddle Advisory).

Technical details

The vulnerability occurs when the matrix_rank function processes input with dimensions that calculate to 0 rows or columns, triggering a floating-point exception during the calculation of numel / (rows * cols). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) by NIST NVD, with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. However, Baidu Inc. assessed it with a lower CVSS score of 4.7 (MEDIUM) (NVD).

Impact

When exploited, this vulnerability can cause a runtime crash and lead to a denial of service condition in the affected PaddlePaddle installation (NVD).

Exploitability

The vulnerability can be triggered by providing a specifically crafted input tensor with zero dimensions. A proof of concept exists that demonstrates the vulnerability by using numpy to create a random uniform array with zero dimensions and converting it to a paddle tensor before calling the matrix_rank function (Paddle Advisory).

Mitigation and workarounds

The vulnerability has been patched in PaddlePaddle version 2.6.0. The fix was implemented in commit 9bb6c669206c4bcc3ce3f6daf8a55650e190c1a1. Users are advised to upgrade to PaddlePaddle version 2.6.0 or later to address this vulnerability (Paddle Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • python-anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • litellm-1.90
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management