Python vulnerabilities
Published: Mon, 27 Jul 2026 16:37
Summary
Several security issues were fixed in Python.
Details
It was discovered that Python incorrectly handled expanding environment variables in os.path.expandvars() when the input was user-controlled. An attacker could possibly use this issue to cause Python to consume resources, leading to a denial of service. (CVE-2025-6075) It was discovered that Python incorrectly handled certain malformed HTML-like markup in the HTMLParser module, raising an uncaught exception. A remote attacker could possibly use this issue to cause applications that parse untrusted input to crash, resulting in a denial of service. (CVE-2025-69534)
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu xenial
python2.7→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5
Most apt upgrades restart their service automatically. needrestart lists anything else.
idle-python2.7→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y idle-python2.7
Most apt upgrades restart their service automatically. needrestart lists anything else.
idle-python3.5→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y idle-python3.5
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython2.7→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython2.7
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython2.7-dev→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython2.7-dev
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython2.7-minimal→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython2.7-minimal
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython2.7-stdlib→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython2.7-stdlib
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython2.7-testsuite→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython2.7-testsuite
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython3.5→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython3.5
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython3.5-dev→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython3.5-dev
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython3.5-minimal→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython3.5-minimal
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython3.5-stdlib→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython3.5-stdlib
Most apt upgrades restart their service automatically. needrestart lists anything else.
libpython3.5-testsuite→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libpython3.5-testsuite
Most apt upgrades restart their service automatically. needrestart lists anything else.
python2.7→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7
Most apt upgrades restart their service automatically. needrestart lists anything else.
python2.7-dev→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7-dev
Most apt upgrades restart their service automatically. needrestart lists anything else.
python2.7-doc→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
python2.7-examples→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7-examples
Most apt upgrades restart their service automatically. needrestart lists anything else.
python2.7-minimal→2.7.12-1ubuntu0~16.04.18+esm21apt_upgradeStandard apt upgrade. Install 2.7.12-1ubuntu0~16.04.18+esm21 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python2.7-minimal
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5-dev→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5-dev
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5-doc→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5-examples→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5-examples
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5-minimal→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5-minimal
Most apt upgrades restart their service automatically. needrestart lists anything else.
python3.5-venv→3.5.2-2ubuntu0~16.04.13+esm24apt_upgradeStandard apt upgrade. Install 3.5.2-2ubuntu0~16.04.13+esm24 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y python3.5-venv
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8614-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8614-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free (3 servers) / from $9/mo (14-day free trial) / Solo $9/mo / Pro $29/mo / Team $79/mo. Indie pricing.