Skip to main content

Podman EUVDEUVD-2026-58187

| CVE-2026-19730 MEDIUM
Incomplete Cleanup (CWE-459)
2026-08-13 secalert@redhat.com
4.2
CVSS 3.1 · Vendor: redhat
Share

Severity by source

Vendor (redhat) PRIMARY
4.2 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
vuln.today AI
4.2 MEDIUM

Local filesystem access required, high complexity due to non-reflink filesystem and file-size dependency, low privileges; all three impact dimensions are low given conditional, non-leaking misconfiguration.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
4.0 AV:L/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE
MEDIUM
qualitative
Red Hat
4.2 MEDIUM
qualitative

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

1
Analysis Generated
Aug 13, 2026 - 18:35 vuln.today

DescriptionCVE.org

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

AnalysisAI

Silent incomplete replacement of Quadlet unit files in Podman 5.8.x causes stale security-sensitive directives to persist after a podman quadlet install --replace operation on non-reflink filesystems. The missing O_TRUNC flag in the file-open call, combined with a non-truncating io.Copy fallback when reflink fails, means that if the replacement Quadlet is shorter than the original, trailing content from the old file survives undetected. A local low-privileged user who uses this command to remove a capability grant (e.g., AddCapability) or an extra volume mount may unknowingly leave those directives active, resulting in containers running with unintended elevated privileges or unauthorized data exposure. No public exploit has been identified at time of analysis.

Technical ContextAI

Podman Quadlets are systemd-unit-style configuration files used to declaratively manage containers, volumes, networks, and other Podman resources. The podman quadlet install --replace command is expected to atomically replace an existing Quadlet file. The vulnerable implementation in pkg/domain/infra/abi/quadlet.go (lines 338-360) opens the destination file with O_CREATE|O_WRONLY but omits O_TRUNC, so the file descriptor starts writing at offset zero without clearing the file. When the preferred reflink copy fails - as it commonly does on RHEL default XFS filesystems without the reflink mount option enabled - the fallback path in vendor/go.podman.io/storage/pkg/fileutils/reflink_linux.go (lines 12-19) uses io.Copy, which writes the new content sequentially but leaves any bytes beyond the new file's length untouched. CWE-459 (Incomplete Cleanup) precisely describes this root cause: residual data from a previous resource state is not cleared before the new state is written, leading to a hybrid file that may be syntactically valid but semantically incorrect. The affected product is Podman 5.8.x on Linux; no CPE strings were provided in the input data, but the local attack vector in the CVSS is consistent with filesystem-level operations confined to the host.

Affected ProductsAI

Podman 5.8.x on Linux is confirmed affected, specifically when Quadlet files reside on filesystems that do not support reflinking - this includes RHEL default XFS configurations without the reflink mount option. The vulnerable logic is in two source files: pkg/domain/infra/abi/quadlet.go (lines 338-360) and vendor/go.podman.io/storage/pkg/fileutils/reflink_linux.go (lines 12-19). No CPE strings were included in the provided data. Versions of Podman outside the 5.8.x branch are not confirmed affected. The Red Hat advisory is at https://access.redhat.com/security/cve/CVE-2026-19730 and the upstream GitHub issue tracking the bug is at https://github.com/podman-container-tools/podman/issues/29013.

RemediationAI

No vendor-released patch version has been confirmed in the provided data; the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-19730 and upstream issue at https://github.com/podman-container-tools/podman/issues/29013 should be monitored for a fix release. As an immediate compensating control, administrators should manually verify installed Quadlet file contents after any podman quadlet install --replace operation by running a byte-for-byte diff between the intended source file and the installed destination - this directly detects residual stale content with no side effects. For any Quadlet replacement that removes security-sensitive directives (AddCapability, volume mounts, capability-related options), the safest workaround is to delete the existing Quadlet file before installing the replacement, which forces a clean O_CREATE write and eliminates the truncation issue entirely; the trade-off is a brief window where no Quadlet is installed. Using a filesystem with native reflink support (e.g., XFS with reflink enabled at mkfs time, or Btrfs) eliminates the vulnerable io.Copy fallback code path entirely. Until patched, do not rely on --replace as the authoritative mechanism for removing security directives.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.4 Not-Affected
SUSE Linux Enterprise Micro 5.5 Not-Affected
SUSE Linux Enterprise Module for Containers 15 SP7 Not-Affected

Share

EUVD-2026-58187 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy