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).
Published: 2026-08-13
Score: 4.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The podman quadlet install --replace command opens the destination quadlet file with the flags O_CREATE and O_WRONLY but omits O_TRUNC. When the initial reflink copy fails—as frequently happens on systems without reflink support—the fallback uses io.Copy, which writes data without truncating the existing file. When the new quadlet is smaller than the original, the old data is retained at the end of the file. The operation then reports success even though the quadlet request was not fully applied. Because the function does not alert the user, an operator may inadvertently keep security‑relevant options such as AddCapability or host‑mount directives that are no longer intended to be present. Retaining such options can enable privileged actions or data exposure inside containers, effectively breaking the isolation guarantees the operator expected.

Affected Systems

Red Hat products that ship Podman, including Red Hat Enterprise Linux 8, 9, 10; Red Hat Ansible Automation Platform 2; Red Hat OpenShift Container Platform 4; Red Hat OpenShift Dev Spaces 3; Red Hat OpenShift Virtualization 4; Red Hat Quay 3; and Red Hat Hardened Images. Versions of Podman before the patched releases 5.8.6 and 6.0.0 are vulnerable.

Risk and Exploitability

The CVSS score of 4.2 places this issue in the moderate range, and the EPSS score is not available, indicating a low to moderate exploitation probability. It is not listed in the CISA KEV catalog. The vulnerability requires the user to run podman quadlet install --replace, so it is limited to hosts where the attacker has local or privileged Podman access. An attacker who can execute the command can overwrite the targeted quadlet file without truncating it, bringing over residual capabilities or mounts that could let the attacker gain elevated privileges inside containers or expose host data to containers.

Generated by OpenCVE AI on August 13, 2026 at 22:47 UTC.

Remediation

Vendor Workaround

Patches available at https://github.com/podman-container-tools/podman/commit/a38a9b7d20915c55e6f3c451101ae72d6da33742 for versions 5.8.6 and 6.0.0. If patches cannot be used, possible workarounds are to manually copy the quadlet files to the quadlet directory or remove the destination file before running 'podman quadlet install' (without --replace).


OpenCVE Recommended Actions

  • Upgrade Podman to a patched release such as 5.8.6 or 6.0.0 by applying the commit available at https://github.com/podman-container-tools/podman/commit/a38a9b7d20915c55e6f3c451101ae72d6da33742
  • If a patch cannot be applied, manually copy the quadlet file to the quadlet directory or delete the destination file before running podman quadlet install without the --replace flag to force a full overwrite
  • Limit the use of podman quadlet install --replace to trusted administrators and consider restricting the command to privileged users when a patch is unavailable

Generated by OpenCVE AI on August 13, 2026 at 22:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Podman-container-tools
Podman-container-tools podman
Redhat hardened Images
Redhat openshift Container Platform
Redhat openshift Dev Spaces
Redhat openshift Virtualization
Redhat quay 3
Vendors & Products Podman-container-tools
Podman-container-tools podman
Redhat hardened Images
Redhat openshift Container Platform
Redhat openshift Dev Spaces
Redhat openshift Virtualization
Redhat quay 3

Fri, 14 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 13 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Description A flaw was found in Podman 5.8.x. 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 (see https://github.com/podman-container-tools/podman/issues/29013). 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). 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).
References

Thu, 13 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in Podman 5.8.x. 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 (see https://github.com/podman-container-tools/podman/issues/29013). 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).
Title Podman: podman: quadlet install --replace non-truncating write retains removed host-access directives
First Time appeared Redhat
Redhat ansible Automation Platform
Redhat container Native Virtualization
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat openshift Devspaces
Redhat quay
Weaknesses CWE-459
CPEs cpe:/a:redhat:ansible_automation_platform:2
cpe:/a:redhat:container_native_virtualization:4
cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift_devspaces:3
cpe:/a:redhat:quay:3
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat ansible Automation Platform
Redhat container Native Virtualization
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Redhat openshift Devspaces
Redhat quay
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L'}


Subscriptions

Podman-container-tools Podman
Redhat Ansible Automation Platform Container Native Virtualization Enterprise Linux Hardened Images Hummingbird Openshift Openshift Container Platform Openshift Dev Spaces Openshift Devspaces Openshift Virtualization Quay Quay 3
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-13T18:41:20.204Z

Reserved: 2026-08-13T13:07:39.303Z

Link: CVE-2026-19730

cve-icon Vulnrichment

Updated: 2026-08-13T18:38:04.949Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-13T18:17:25.330

Modified: 2026-08-14T19:07:46.080

Link: CVE-2026-19730

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T00:00:00Z

Links: CVE-2026-19730 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T12:14:44Z

Weaknesses