# CVE-2025-4953: Podman: build context bind mount

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.88% (percentile 57, 2026-11-26)
- **CWE:** CWE-378
- **Aliases:** GHSA-m68q-4hqr-mc6f, GO-2025-3961
- **Published:** 2025-09-16T14:54:50.045Z
- **Modified:** 2026-11-26T21:17:13.563Z

## Who should check

- Projects that depend on Go package github.com/containers/podman/v5 (\<= 5.5.0)
- Projects that depend on Go package github.com/containers/buildah (\< 1.27.6; \>= 1.28.0, \< 1.33.12; \>= 1.34.0, \< 1.35.5; \>= 1.36.0, \< 1.37.6; \>= 1.38.0, \< 1.38.1)
- Projects that depend on Go package github.com/containers/podman
- Projects that depend on Go package github.com/containers/podman/v2
- Projects that depend on Go package github.com/containers/podman/v3
- Projects that depend on Go package github.com/containers/podman/v4
- Anyone running podman \< \*
- Anyone running Red Hat Enterprise Linux 8 all versions

## Description

A flaw was found in Podman. In a Containerfile or Podman, data written to RUN --mount=type=bind mounts during the podman build is not discarded. This issue can lead to files created within the container appearing in the temporary build context directory on the host, leaving the created files accessible.

## Affected and fixed versions

- Go `github.com/containers/podman/v5`: affected \<= 5.5.0; fixed 5.3.2 (osv)
- Go `github.com/containers/buildah`: affected \< 1.27.6; \>= 1.28.0, \< 1.33.12; \>= 1.34.0, \< 1.35.5; \>= 1.36.0, \< 1.37.6; \>= 1.38.0, \< 1.38.1; fixed 1.27.6, 1.33.12, 1.35.5, 1.37.6, 1.38.1 (osv)
- Go `github.com/containers/podman`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/containers/podman/v2`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/containers/podman/v3`: affected see advisory; fixed no fix listed yet (osv)
- Go `github.com/containers/podman/v4`: affected see advisory; fixed no fix listed yet (osv)
- podman: \< \* (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.16: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.16: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.17: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.18: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.18: all versions (cvelist)
- Red Hat Enterprise Linux 10: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)

## Mitigation

- Upgrade github.com/containers/podman/v5 to 5.3.2 or later.
- Upgrade github.com/containers/buildah to one of 1.27.6, 1.33.12, 1.35.5, 1.37.6, 1.38.1 (or later in the same release line).
- Vendor workaround: Avoid long-running build steps and overly permissive file permissions. Use RUN --mount=type=secret for sensitive data instead of bind mounts.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-4953. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-4953.md
Affected: github.com/containers/podman/v5 <= 5.5.0; github.com/containers/buildah < 1.27.6; >= 1.28.0, < 1.33.12; >= 1.34.0, < 1.35.5; >= 1.36.0, < 1.37.6; >= 1.38.0, < 1.38.1; github.com/containers/podman; github.com/containers/podman/v2; github.com/containers/podman/v3; github.com/containers/podman/v4
Fixed in: 5.3.2, 1.27.6, 1.33.12, 1.35.5, 1.37.6, 1.38.1

Steps:
1. Search this machine and project for github.com/containers/podman/v5 (Go), github.com/containers/buildah (Go), github.com/containers/podman (Go), github.com/containers/podman/v2 (Go), github.com/containers/podman/v3 (Go), github.com/containers/podman/v4 (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-4953 being exploited?

There is no confirmed exploitation: CVE-2025-4953 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.88% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-4953?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-4953?

github.com/containers/podman/v5 \<= 5.5.0; github.com/containers/buildah \< 1.27.6; \>= 1.28.0, \< 1.33.12; \>= 1.34.0, \< 1.35.5; \>= 1.36.0, \< 1.37.6; \>= 1.38.0, \< 1.38.1; github.com/containers/podman; github.com/containers/podman/v2; github.com/containers/podman/v3; github.com/containers/podman/v4.

### Is there a fix for CVE-2025-4953?

Yes. Fixed in 5.3.2, 1.27.6, 1.33.12, 1.35.5, 1.37.6, 1.38.1. Upgrade github.com/containers/podman/v5 to 5.3.2 or later. Upgrade github.com/containers/buildah to one of 1.27.6, 1.33.12, 1.35.5, 1.37.6, 1.38.1 (or later in the same release line). Vendor workaround: Avoid long-running build steps and overly permissive file permissions. Use RUN --mount=type=secret for sensitive data instead of bind mounts.

### How do I check if I'm affected by CVE-2025-4953?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:8690>
- vendor: <https://access.redhat.com/errata/RHSA-2025:15904>
- vendor: <https://access.redhat.com/errata/RHSA-2025:16724>
- vendor: <https://access.redhat.com/errata/RHSA-2025:16729>
- vendor: <https://access.redhat.com/errata/RHSA-2025:17669>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22265>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22275>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22695>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22724>
- vendor: <https://access.redhat.com/errata/RHSA-2025:22732>
- vendor: <https://access.redhat.com/errata/RHSA-2025:23113>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2703>
- vendor: <https://access.redhat.com/errata/RHSA-2026:0316>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-4953>
- vendor: <https://github.com/advisories/GHSA-m68q-4hqr-mc6f>
- patch: <https://github.com/containers/podman/pull/25173>
- patch: <https://github.com/containers/buildah/commit/25a3b385afd1b4166d739afb665df57752c46ccd>
- patch: <https://github.com/containers/buildah/commit/c30f5784da18628d80637d578d0ffc40a3189896>
- patch: <https://github.com/containers/podman/commit/50295e5e5d1a4583d26d5c6d5c0608cff498cc8d>
- patch: <https://github.com/containers/podman/commit/fe02e390afd01694163e7ca9582a401df5bea80c>
- patch: <https://github.com/containers/podman/commit/fe2b5da2cb297f0f1f4aa7c247c1b195a8b90345>
- patch: <https://github.com/containers/podman/pull/25069>
- patch: <https://github.com/containers/podman/pull/25208>
- other: <https://access.redhat.com/security/cve/CVE-2025-4953>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2367235>
- other: <https://github.com/containers/podman>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-4953>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m68q-4hqr-mc6f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3961> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-4953> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-4953>
