Threat intelligence dashboard
CVE-2026-19730medium

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

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).

Risk score

4.2

CVSS 3.1

Vendor
Red Hat
Product
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux 8, Red Hat Hardened Images, Red Hat OpenShift Container Platform 4, Red Hat OpenShift Dev Spaces, Red Hat OpenShift Virtualization 4, Red Hat Quay 3
CWE
CWE-459
Published
Aug 13, 2026
Updated
Sep 28, 2026
CISA KEV
Not flagged

Affected products and versions

Red Hat Enterprise Linux 10

Red Hat

Version / rangeStatusType
7:5.8.2-9.el10_2 to before *unaffectedrpm

Red Hat Enterprise Linux 9

Red Hat

Version / rangeStatusType
6:5.8.2-7.el9_8 to before *unaffectedrpm

Red Hat Ansible Automation Platform 2

Red Hat

No affected version range was provided.

Red Hat Ansible Automation Platform 2

Red Hat

No affected version range was provided.

Red Hat Ansible Automation Platform 2

Red Hat

No affected version range was provided.

Red Hat Ansible Automation Platform 2

Red Hat

No affected version range was provided.

Red Hat Enterprise Linux 8

Red Hat

No affected version range was provided.

Red Hat Hardened Images

Red Hat

No affected version range was provided.

Red Hat OpenShift Container Platform 4

Red Hat

No affected version range was provided.

Red Hat OpenShift Dev Spaces

Red Hat

No affected version range was provided.

Red Hat OpenShift Dev Spaces

Red Hat

No affected version range was provided.

Red Hat OpenShift Dev Spaces

Red Hat

No affected version range was provided.

Red Hat OpenShift Virtualization 4

Red Hat

No affected version range was provided.

Red Hat Quay 3

Red Hat

No affected version range was provided.

Red Hat Quay 3

Red Hat

No affected version range was provided.

Technical metrics

4.2

CVSS 3.1

Severity
medium
Source
redhat
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L