CVE-2026-2297 Affecting python3 package, versions <3.12.14-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.21% (12th 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 IDSNYK-ALPINE321-PYTHON3-18833837
  • published15 Aug 2026
  • disclosed4 Mar 2026

Introduced: 4 Mar 2026

CVE-2026-2297  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 python3 to version 3.12.14-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3 package and not the python3 package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.

CVSS Base Scores

version 3.1