CVE-2023-52305
Python vulnerability analysis and mitigation

Overview

CVE-2023-52305 is a vulnerability discovered in PaddlePaddle versions before 2.6.0, specifically affecting the paddle.topk functionality. The vulnerability was reported by Tong Liu of CAS-IIE and disclosed on January 3, 2024. This security flaw involves a Floating Point Exception (FPE) that occurs when the dimensions of input parameters 'x' and 'k' are not correctly aligned (Paddle Advisory, NVD).

Technical details

The vulnerability is classified as a Divide By Zero issue (CWE-369) with a CVSS v3.1 base score of 7.5 (High) according to NIST, while Baidu Inc. rates it at 4.7 (Medium). The vulnerability manifests when processing incorrect dimensions between 'x' and 'k' parameters in the paddle.topk function, leading to a floating-point exception. The attack vector is network-accessible with low attack complexity and requires no privileges (NVD).

Impact

When successfully exploited, this vulnerability can cause a runtime crash and result in a denial of service condition, potentially disrupting the normal operation of applications using the PaddlePaddle framework (NVD).

Mitigation and workarounds

The vulnerability has been patched in PaddlePaddle version 2.6.0. The fix was implemented in commit 19da5c0c4d8c5e4dfef2a92e24141c3f51884dcc. Users are advised to upgrade to PaddlePaddle version 2.6.0 or later to address this security issue (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-2026-22871HIGH8.7
  • PythonPython
  • guarddog
NoYesJan 13, 2026
GHSA-58pv-8j8x-9vj2HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 13, 2026
CVE-2026-22779MEDIUM6.3
  • PythonPython
  • blacksheep
NoYesJan 14, 2026
CVE-2026-21889LOW2.3
  • PythonPython
  • weblate
NoYesJan 14, 2026
CVE-2025-68492LOW2.3
  • PythonPython
  • chainlit
NoYesJan 14, 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