github.com/containers/podman/v5: podman quadlet install --replace does not fully replace the old file
What fixes it
- 5.8.6github.com/containers/podman/v5, goGitHub
go get github.com/containers/podman/v5@v5.8.6 - 5.8.6github.com/containers/podman/v5, GoOSV
go get github.com/containers/podman/v5@v5.8.6
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Impact
When 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.
First introduced in commit 0ea4eaee70b7458bcc99d875529761faf5172651 with podman 5.7.0
Patches
a38a9b7d20915c55e6f3c451101ae72d6da33742 (fixed in 6.0.0)
d3adfdeec7d5c9eee5a6978df3bee62a866c958d d4fe9154ec6e32a02d5fcd096c4a27c38f2040f4 (for v5.8 branch, fixed in 5.8.6)
Workarounds
Manually copy the quadlet files to the quadlet directory.
Credits
Podman thanks Christopher Lusk <clusk@northecho.dev> (North Echo Security Research) for reporting the security impact of this problem.
Text from GitHub Advisory Database
Affected versions 4
- github.com/containers/podman/v5, go>= 5.7.0, < 5.8.6GitHub
- Red Hat Enterprise Linux 10unaffected: 7:5.8.2-9.el10_2 and laterCVE List
- Red Hat Enterprise Linux 9unaffected: 6:5.8.2-7.el9_8 and laterCVE List
- github.com/containers/podman/v5, Gofrom 5.7.0, fixed in 5.8.6OSV
References 15
- github.com/podman-container-tools/podman/commit/0ea4eaee70b7458bcc99d875529761faf5172651Fixvia GitHub
- github.com/podman-container-tools/podman/commit/a38a9b7d20915c55e6f3c451101ae72d6da33742Fixvia GitHub
- github.com/podman-container-tools/podman/commit/d3adfdeec7d5c9eee5a6978df3bee62a866c958dFixvia GitHub
- github.com/podman-container-tools/podman/commit/d4fe9154ec6e32a02d5fcd096c4a27c38f2040f4Fixvia GitHub
- github.com/podman-container-tools/podman/releases/tag/v5.8.6Fixvia GitHub
- github.com/podman-container-tools/podman/releases/tag/v6.0.0Fixvia GitHub
- github.com/podman-container-tools/podman/security/advisories/GHSA-fx76-2j3w-2mx6Advisoryvia CVE List
- access.redhat.com/errata/RHSA-2026:69961Advisoryvia CVE List
- access.redhat.com/errata/RHSA-2026:70201Advisoryvia CVE List
- access.redhat.com/security/cve/CVE-2026-19730Advisoryvia CVE List
- github.com/advisories/GHSA-fx76-2j3w-2mx6Advisoryvia GitHub
- github.com/podman-container-tools/podman/issues/29013Exploitvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2026-19730Referencevia GitHub
- github.com/podman-container-tools/podman/pull/27980Referencevia GitHub
- bugzilla.redhat.com/show_bug.cgi?id=2508234Referencevia CVE List