Resource Consumption Vulnerability in python-apt Package

python-apt Updated 03 Oct 2025

Summary

11/01/2021
N/A
Yes i
Unrated
Not published

USN-4668-4: python-apt vulnerability. Affects python-apt versions < 0.9.3.5ubuntu3+esm4. Fixed in 0.9.3.5ubuntu3+esm4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The python-apt package is a Python interface to the Advanced Package Tool (APT) used in Debian-based systems, including Ubuntu. It allows users to manage packages, install software, and handle dependencies programmatically. This package is essential for system administrators and developers who automate package management tasks. However, it has been found to have a vulnerability that can lead to resource exhaustion.

Vulnerability Detail

The vulnerability, identified as CVE-2020-27351, was discovered by Kevin Backhouse. It arises from improper handling of resources within the python-apt package. A local attacker could exploit this flaw to cause the package to consume excessive system resources, potentially leading to a denial of service. This could disrupt normal operations and affect the availability of the system.

How To Fix

Minimum fixed version

0.9.3.5ubuntu3+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-apt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can limit the resources available to the python-apt process or monitor its usage closely to prevent denial of service. However, the best course of action is to apply the patch as soon as possible.

Conclusion

The python-apt package has a critical vulnerability that can lead to resource exhaustion and denial of service. It is essential to update to the patched version to secure your system. Regular monitoring and using tools like Vulert can help maintain awareness of vulnerabilities in your software.

See every vulnerability recorded for python-apt →

Share this vulnerability

FAQ

The vulnerability can lead to excessive resource consumption, resulting in a denial of service for the affected system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities. You can check your application against this vulnerability using the Vulert playground at Vulert Scanner.

While the primary risk is denial of service, there is no direct indication of data loss. However, system instability could indirectly affect data integrity.

The affected version is prior to 0.9.3.5ubuntu3+esm4. Ensure you are using the patched version to mitigate the risk.

It is recommended to update to the patched version rather than attempting to manually patch the vulnerability, as this ensures all related issues are addressed.

Related vulnerabilities

Recent vulnerabilities recorded for python-apt.

How To Fix

Minimum fixed version

0.9.3.5ubuntu3+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-apt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback