CVE-2025-9566: Podman: podman kube play command may overwrite host files

Published Sep 4, 2025
·
Updated

Impact

The podman kube play command can overwrite host files when the kube file contains a ConfigMap or Secret volume mount and the volume already contains a symlink to a host file. This allows a malicious container to write to arbitrary files on the host BUT the attacker only controls the target path not the contents that will be written to the file. The contents are defined in the yaml file by the end user.

Requirements to exploit: podman kube play must be used with a ConfigMap or Secret volume mount AND must be run more than once on the same volume. All the attacker has to do is create the malicious symlink on the volume the first time it is started. After that all following starts would follow the symlink and write to the host location.

Patches Fixed in podman v5.6.1 https://github.com/containers/podman/commit/43fbde4e665fe6cee6921868f04b7ccd3de5ad89

Workarounds

Don't use podman kube play with ConfigMap or Secret volume mounts.

PR with test for CI

Adding on 9/8/2025 by @TomSweeneyRedHat , this is the PR containing the test in CI: https://github.com/containers/podman/pull/27001

Other sources

The podman kube play command can overwrite host files when the kube file contains a ConfigMap or Secret volume mount and the volume already contains a symlink to a host file. This allows a malicious container to write to arbitrary files on the host but the attacker only controls the target path not the contents that will be written to file. The contents are defined in the yaml file by the end user.

Red Hat

There's a vulnerability in podman where an attacker may use the kube play command to overwrite host files when the kube file container a Secrete or a ConfigMap volume mount and such volume contains a symbolic link to a host file path. In a successful attack, the attacker can only control the target file to be overwritten but not the content to be written into the file.

Binary-Affected: podman Upstream-version-introduced: v4.0.0 Upstream-version-fixed: v5.6.1

NVD

Affected Software

2 affected componentsFixes available
go/github.com/containers/podman/v4<=4.9.5
go/github.com/containers/podman/v5<=5.6.0
5.6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/containers/podman/v5 to a version that resolves this vulnerability.

    Fixed in 5.6.1
  2. Upgrade

    Upgrade podman to a version that resolves this vulnerability.

    Fixed in 5.6.1
  3. Configuration

    Do not use `podman kube play` with ConfigMap or Secret volume mounts.

    podman kube play ConfigMap/Secret volume mounts = Do not use ConfigMap or Secret volume mounts
  4. Compensating control

    Avoid running `podman kube play` more than once against the same volume when ConfigMap or Secret volume mounts are involved.

Event History

Sep 4, 2025
Data Sourced
via Red Hat·03:48 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·08:01 PM
Data Sourced
via GitHub·08:01 PM
DescriptionSeverityWeaknessAffected Software
Sep 5, 2025
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Feb 28, 57989
Event
via FIRST·02:26 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-9566?

CVE-2025-9566 is considered a high severity vulnerability due to its potential to allow arbitrary file writes on the host.

2

How do I fix CVE-2025-9566?

To fix CVE-2025-9566, upgrade to podman version 5.6.1 or later.

3

Which versions of podman are affected by CVE-2025-9566?

CVE-2025-9566 affects podman versions up to 4.9.5 and 5.6.0.

4

What is the main risk associated with CVE-2025-9566?

The main risk of CVE-2025-9566 is that it allows malicious containers to overwrite arbitrary host files.

5

Are there any workarounds for CVE-2025-9566 if I can't upgrade?

Temporary workarounds include avoiding the use of symlinks to host files in ConfigMap or Secret volume mounts until an upgrade can be performed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203