{"id":"CVE-2026-19730","aliases":["CVE-2026-19730","GHSA-fx76-2j3w-2mx6","GO-2026-6588"],"related":[],"kind":"vulnerability","state":"published","title":"Podman: podman: quadlet install --replace non-truncating write retains removed host-access directives","summary":"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.\n\nThere 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.\n\nThe 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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nThere 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.\n\nThe 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).","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen running `podman quadlet install --replace` to replace a Quadlet file, if the original Quadlet is larger than the new Quadlet, the file would not be truncated and content from the original would be preserved. 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.\n\nFirst introduced in commit 0ea4eaee70b7458bcc99d875529761faf5172651 with podman 5.7.0\n\n\n### Patches\na38a9b7d20915c55e6f3c451101ae72d6da33742 (fixed in 6.0.0)\n\nd3adfdeec7d5c9eee5a6978df3bee62a866c958d d4fe9154ec6e32a02d5fcd096c4a27c38f2040f4 (for v5.8 branch, fixed in 5.8.6)\n\n### Workarounds\nManually copy the quadlet files to the quadlet directory.\n\n\n### Credits\n\nPodman thanks Christopher Lusk <clusk@northecho.dev> (North Echo Security Research) for reporting the security impact of this problem.","format":"markdown","source":"ghsa"},{"lang":"en","text":"podman quadlet install --replace does not fully replace the old file in github.com/containers/podman","format":"markdown","source":"go"}],"published":"2026-08-13T17:53:37.029Z","modified":"2026-11-24T11:17:17.840Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.2,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.2,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-459"],"affected":[{"ranges":[{"type":"rpm","introduced":"7:5.8.2-9.el10_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"podman","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"6:5.8.5-5.el9_9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"podman","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"6:5.8.2-7.el9_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"podman","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-24/eda-controller-rhel8","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-25/eda-controller-rhel8","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-26/eda-controller-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-27/eda-controller-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"container-tools:rhel8/podman","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"podman","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"podman","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","package":"podman","cpe":"cpe:/a:redhat:openshift:5","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","package":"devspaces/udi-base-rhel10","cpe":"cpe:/a:redhat:openshift_devspaces:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","package":"devspaces/udi-base-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","package":"devspaces/udi-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","package":"container-native-virtualization/ocp-virt-validation-checkup-rhel9","cpe":"cpe:/a:redhat:container_native_virtualization:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Quay 3","package":"quay/quay-builder-rhel8","cpe":"cpe:/a:redhat:quay:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Quay 3","package":"quay/quay-builder-rhel9","cpe":"cpe:/a:redhat:quay:3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.7.0","status":"affected","fixed":"5.8.6"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"5.7.0","status":"affected","fixed":"5.8.6"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"go"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:102296","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:69961","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:70201","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-19730","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2508234","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/podman-container-tools/podman/issues/29013","tags":["exploit","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/podman-container-tools/podman/security/advisories/GHSA-fx76-2j3w-2mx6","tags":["advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-19730","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/pull/27980","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/commit/0ea4eaee70b7458bcc99d875529761faf5172651","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/commit/a38a9b7d20915c55e6f3c451101ae72d6da33742","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/commit/d3adfdeec7d5c9eee5a6978df3bee62a866c958d","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/commit/d4fe9154ec6e32a02d5fcd096c4a27c38f2040f4","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/podman-container-tools/podman/releases/tag/v5.8.6","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/releases/tag/v6.0.0","tags":["web"],"sources":["ghsa","go"]}],"credits":["Red Hat would like to thank Christopher Lusk (North Echo Security Research) and Paul Holzinger (Podman) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-13T18:37:45.571Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-19730","url":"https://www.cve.org/CVERecord?id=CVE-2026-19730","licence":"CVE Terms of Use","modified":"2026-11-24T11:10:06.740Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fx76-2j3w-2mx6","url":"https://github.com/advisories/GHSA-fx76-2j3w-2mx6","licence":"CC-BY-4.0","modified":"2026-10-01T20:56:10.614Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6588","url":"https://pkg.go.dev/vuln/GO-2026-6588","licence":"CC-BY-4.0","modified":"2026-10-01T20:45:14.987Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-19730","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-19730","licence":"Public domain","modified":"2026-11-24T11:17:17.840Z"}],"updatedAt":"2026-11-25T22:59:32.811Z","epss":{"score":0.00195,"percentile":0.0968,"date":"2026-12-01T12:00:22.000Z"}}