Localhost Traffic Vulnerability in Podman - CVE-2021-20199

libpod Updated 02 Oct 2025

Summary

02/02/2021
N/A
No i
Medium
5.9

UBUNTU-CVE-2021-20199: Rootless containers run with Podman, receive all traffic with a source IP address of 127.0.0.1 (including from remote hosts). Affects libpod versions 3.2.1+ds1-2ubuntu3 – 3.4.4+ds1-1ubuntu1.22.04.3. No fix is published. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Podman is an open-source container management tool that allows users to create, manage, and run containers without requiring a daemon. It is designed to be a drop-in replacement for Docker, providing a similar command-line interface and functionality. The package is widely used for developing and deploying applications in isolated environments. However, a vulnerability has been identified that affects Podman versions 1.8.0 and later, which could compromise the security of applications relying on localhost connections.

Vulnerability Detail

The vulnerability arises from the way rootless containers in Podman handle incoming traffic. Specifically, all traffic is received with a source IP address of 127.0.0.1, including traffic from remote hosts. This can lead to security issues for containerized applications that trust connections from localhost by default and do not implement proper authentication mechanisms. As a result, malicious actors could exploit this flaw to gain unauthorized access to sensitive data or services running within the container.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement network policies or firewall rules to restrict access to the containerized applications, ensuring that only trusted sources can communicate with them. Additionally, consider using authentication mechanisms for services that rely on localhost connections.

Conclusion

CVE-2021-20199 is a significant vulnerability affecting Podman that could lead to unauthorized access to containerized applications. Users are strongly advised to update to the latest patched versions of Podman to mitigate this risk. Implementing workarounds can provide temporary relief until an update can be applied.

See every vulnerability recorded for libpod →

Share this vulnerability

FAQ

CVE-2021-20199 is a vulnerability in Podman that allows rootless containers to receive all traffic with a source IP address of 127.0.0.1, potentially exposing applications to unauthorized access.

Podman versions 1.8.0 and later are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

The CVSS score of CVE-2021-20199 is 5.9, indicating a medium severity level.

If you cannot update Podman right away, implement network policies or firewall rules to restrict access to your applications and consider using authentication for services that rely on localhost connections.

Related vulnerabilities

Recent vulnerabilities recorded for libpod.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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