CVE-2026-8328 Affecting python3.12 package, versions <3.12.3-1ubuntu0.15


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.48% (38th 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-UBUNTU2404-PYTHON312-16781984
  • published6 Jul 2026
  • disclosed13 May 2026

Introduced: 13 May 2026

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

How to fix?

Upgrade Ubuntu:24.04 python3.12 to version 3.12.3-1ubuntu0.15 or higher.

NVD Description

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

The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.