Skip to content

CVE-2026-19730 Podman: podman: quadlet install --replace non-truncating write retains removed host-access directives

MediumCVSS 4.2 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

The 'podman quadlet install --replace' command opens the existing destination file with O_CREATE|O_WRONLY but omits O_TRUNC. When the initial reflink copy attempt fails (common on non-reflink-capable filesystems including many RHEL default XFS configurations), the fallback in ReflinkOrCopy uses io.Copy which performs a non-truncating write. If the original Quadlet is larger than the new Quadlet, the file is not truncated and content from the original is preserved. The command completes with no warning.

There is no risk of information leakage as the user already had access to the Quadlet in order to replace it, and in most cases, this would only lead to invalid Quadlet files. However, security-related options from the end of the old Quadlet could be included in the new Quadlet, and if the truncation resulted in a valid Quadlet file, this could result in undesirable behavior. For example, running podman quadlet install --replace to remove a single line from the end of a Quadlet - including security-sensitive content, like AddCapability - will fail, and the option will continue to be used. Further, with Volume Quadlets, this can include additional mounts which can cause content to be unintentionally exposed into containers. If, later, the image is updated then compromised content might be leaked to an attacker.

The vulnerable code paths are in pkg/domain/infra/abi/quadlet.go (lines 338-360, O_CREATE|O_WRONLY without O_TRUNC) and vendor/go.podman.io/storage/pkg/fileutils/reflink_linux.go (lines 12-19, non-truncating io.Copy fallback).

Upgrade path

14 packages: 5 fixed, 1 partially fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/podman(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/podman(Ubuntu 26.10) All versions No fix listed No fix yet
containers github.com/containers/podman/v4(Go) >= 5.7.0, < 5.8.6; All versions 5.8.6 Partially fixed
alpine/podman(Alpine v3.24) < 5.8.6-r0 5.8.6-r0 Fixed
debian/podman(Debian 14) < 5.8.6+ds1-1; = 5.4.2+ds1-2; = 5.6.1+ds1-1; = 5.6.1+ds1-2 +20 more 5.8.6+ds1-1 Fixed
redhat enterprise linux < 6:5.8.2-7.el9_8; < 7:5.8.2-9.el10_2; = 8 6:5.8.2-7.el9_8, 7:5.8.2-9.el10_2 Fixed
redhat/podman(Red Hat enterprise_linux 10.2) < 7:5.8.2-9.el10_2 7:5.8.2-9.el10_2 Fixed
redhat/podman(Red Hat enterprise_linux 9) < 6:5.8.2-7.el9_8 6:5.8.2-7.el9_8 Fixed
redhat ansible automation platform = 2 No fix listed Versions listed
redhat container native virtualization = 4 No fix listed Versions listed
redhat hummingbird = 1 No fix listed Versions listed
redhat openshift = 4; = 5 No fix listed Versions listed
redhat openshift devspaces = 3 No fix listed Versions listed
redhat quay = 3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
containers github.com/containers/podman/v4(Go) >= 5.7.0, < 5.8.6 5.8.6
containers github.com/containers/podman/v4(Go) All versions No fix listed
redhat enterprise linux < 7:5.8.2-9.el10_2 7:5.8.2-9.el10_2
redhat enterprise linux < 6:5.8.2-7.el9_8 6:5.8.2-7.el9_8
redhat ansible automation platform = 2 No fix listed
redhat enterprise linux = 8 No fix listed
redhat hummingbird = 1 No fix listed
redhat openshift = 4 No fix listed
redhat openshift = 5 No fix listed
redhat openshift devspaces = 3 No fix listed
redhat container native virtualization = 4 No fix listed
redhat quay = 3 No fix listed
redhat/podman(Red Hat:enterprise_linux:10.2) < 7:5.8.2-9.el10_2 7:5.8.2-9.el10_2
redhat/podman(Red Hat:enterprise_linux:9) < 6:5.8.2-7.el9_8 6:5.8.2-7.el9_8
debian/podman(Debian:14) < 5.8.6+ds1-1 5.8.6+ds1-1
debian/podman(Debian:14) = 5.4.2+ds1-2 No fix listed
debian/podman(Debian:14) = 5.6.1+ds1-1 No fix listed
debian/podman(Debian:14) = 5.6.1+ds1-2 No fix listed
debian/podman(Debian:14) = 5.6.1+ds2-2 No fix listed
debian/podman(Debian:14) = 5.6.1+ds2-3 No fix listed
debian/podman(Debian:14) = 5.6.2+ds1-1 No fix listed
debian/podman(Debian:14) = 5.6.2+ds1-2 No fix listed
debian/podman(Debian:14) = 5.6.2+ds1-3 No fix listed
debian/podman(Debian:14) = 5.6.2+ds1-3+exp1 No fix listed
debian/podman(Debian:14) = 5.6.2+ds1-4 No fix listed
Show 16 more
ProductAffected versionsFixed in
debian/podman(Debian:14) = 5.7.0+ds2-1 No fix listed
debian/podman(Debian:14) = 5.7.0+ds2-2 No fix listed
debian/podman(Debian:14) = 5.7.0+ds2-3 No fix listed
debian/podman(Debian:14) = 5.8.0+ds1-1 No fix listed
debian/podman(Debian:14) = 5.8.1+ds1-1 No fix listed
debian/podman(Debian:14) = 5.8.1+ds1-2 No fix listed
debian/podman(Debian:14) = 5.8.1+ds1-3 No fix listed
debian/podman(Debian:14) = 5.8.2+ds1-1 No fix listed
debian/podman(Debian:14) = 5.8.2+ds1-2 No fix listed
debian/podman(Debian:14) = 5.8.2+ds1-3 No fix listed
debian/podman(Debian:14) = 5.8.3+ds1-1 No fix listed
debian/podman(Debian:14) = 5.8.4+ds1-1 No fix listed
debian/podman(Debian:14) = 5.8.4+ds1-2 No fix listed
alpine/podman(Alpine:v3.24) < 5.8.6-r0 5.8.6-r0
ubuntu/podman(Ubuntu:26.04) All versions No fix listed
ubuntu/podman(Ubuntu:26.10) All versions No fix listed

References