Access of Resource Using Incompatible Type ('Type Confusion') Affecting python package, versions [3.11.0,3.13.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PYTHON-8660825
  • published24 Jan 2025
  • disclosed23 Jan 2025
  • creditNico-Posada

Introduced: 23 Jan 2025

NewCVE-2025-22153  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade python to version 3.13.2 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') due to a type confusion bug in the CPython interpreter. An attacker can bypass security restrictions by exploiting the try/except* clauses. This is only exploitable if the try/except* feature is used in the code.

CVSS Scores

version 4.0
version 3.1