Red Hat Ansible Automation Platform 2: incomplete cleanup
Medium4.2CVE-2026-19730 · Published Aug 13, 2026 · updated Sep 22, 2026
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...
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Red Hat Ansible Automation Platform 2 Product | all versions | No fix yet |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| Red Hat Enterprise Linux 8 Product | all versions | No fix yet |
| Red Hat Hardened Images Product | all versions | No fix yet |
| Red Hat OpenShift Container Platform 4 Product | all versions | No fix yet |
| Red Hat OpenShift Dev Spaces Product | all versions | No fix yet |
| all versions | No fix yet | |
| all versions | No fix yet |
Details and references
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).
- CVSS 3.1
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-459
- www.cve.org/CVERecord?id=CVE-2026-19730
- nvd.nist.gov/vuln/detail/CVE-2026-19730
- access.redhat.com/errata/RHSA-2026:69961
- access.redhat.com/errata/RHSA-2026:70201
- access.redhat.com/security/cve/CVE-2026-19730
- bugzilla.redhat.com/show_bug.cgi?id=2508234
- github.com/podman-container-tools/podman/issues/29013
- github.com/podman-container-tools/podman/security/advisories/GHSA-fx76-2j3w-2mx6
More Red Hat advisories
All Red Hat| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 13 | A flaw was found in the clusterclaims-controller component of Multicluster... | High7.1 | No fix yet |
| Aug 13 | Red Hat sblim-sfcb: unsafe deserialization | Medium6.6 | No fix yet |
| Aug 13 | Red Hat sblim-sfcb. A local: race condition | Medium6.3 | No fix yet |
| Aug 13 | A flaw was found in sblim-cmpi-base | Medium6.3 | No fix yet |
| Aug 13 | Red Hat open-iscsi. An integer underflow vulnerability: integer overflow | Medium6.5 | No fix yet |
| Aug 12 | Red Hat: mass assignment | High8.5 | No fix yet |