Use After Free Affecting python package, versions [0,3.14.0b1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (4th percentile)

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 Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PYTHON-10246591
  • published26 May 2025
  • disclosed15 May 2025
  • creditUnknown

Introduced: 15 May 2025

NewCVE-2025-4516  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade python to version 3.14.0b1 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free through the unicode_escape decoder when used with an error handler. An attacker can trigger a use-after-free condition by manipulating the memory after it has been freed. This is only exploitable if the unicode_escape encoding and an error handler (ignore or replace) are used together.

CVSS Base Scores

version 4.0
version 3.1