Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.4
CVE-2025-52881: runc may let attackers bypass security label checks
CVE-2025-52881 · published 11 months ago
Summary
The container command-line tool runc (versions 1.2.7, 1.3.2 and 1.4.0-rc.2) can be tricked into writing security label information to the wrong place, letting a malicious container escape its intended restrictions. This can happen when containers share mount points and the attacker uses specially crafted files to redirect writes. Upgrade runc to version 1.2.8, 1.3.3, or 1.4.0-rc.3 to close the gap.
What to do
- Update github.com opencontainers to version 1.2.8.
- Update github.com opencontainers to version 1.13.0.
- Update github.com opencontainers to version 1.3.3.
- Update github.com opencontainers to version 1.4.0-rc.3.
- Update bellsoft buildah to version 1.39.5-r0.
- Update bellsoft podman to version 5.6.2-r1.
- Update bellsoft podman to version 5.6.2-r13.
- Update bellsoft runc to version 1.3.6-r0.
- Update bellsoft buildah to version 1.41.6-r0.
- Update bellsoft runc to version 1.3.3-r0.
- Update bellsoft buildah to version 1.42.1-r0.
- Update bellsoft podman to version 5.7.0-r0.
- Update debian runc to version 1.3.3+ds1-2.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| go | github.com | opencontainers |
<= 1.2.7 >= 1.3.0-rc.1, <= 1.3.2 >= 1.4.0-rc.1, <= 1.4.0-rc.2 Fix: upgrade to 1.2.8
|
| go | github.com | opencontainers |
<= 1.12.0 Fix: upgrade to 1.13.0
|
| – | linuxfoundation | runc |
< 1.2.8 >= 1.3.0, < 1.3.3 1.4.0 cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* |
| Alpaquita:23 | bellsoft | buildah |
>= 1.28.0-r1, < 1.39.5-r0 Fix: upgrade to 1.39.5-r0
|
| Alpaquita:23 | bellsoft | podman |
>= 4.3.1-r0, < 5.6.2-r1 >= 4.3.1-r0, < 5.6.2-r13 Fix: upgrade to 5.6.2-r1
|
| Alpaquita:25 | bellsoft | podman |
>= 5.5.0-r0, < 5.6.2-r13 >= 5.5.0-r0, < 5.6.2-r1 Fix: upgrade to 5.6.2-r13
|
| Alpaquita:23 | bellsoft | runc |
>= 1.1.4-r3, < 1.3.6-r0 Fix: upgrade to 1.3.6-r0
|
| Alpaquita:25 | bellsoft | buildah |
>= 1.40.0-r0, < 1.41.6-r0 Fix: upgrade to 1.41.6-r0
|
| Alpaquita:25 | bellsoft | runc |
>= 1.3.0-r1, < 1.3.3-r0 Fix: upgrade to 1.3.3-r0
|
| Alpaquita:stream | bellsoft | buildah |
>= 1.31.0-r0, < 1.42.1-r0 Fix: upgrade to 1.42.1-r0
|
| Alpaquita:stream | bellsoft | podman |
>= 4.5.1-r1, < 5.7.0-r0 Fix: upgrade to 5.7.0-r0
|
| Alpaquita:stream | bellsoft | runc |
>= 1.3.0-r1, < 1.3.3-r0 Fix: upgrade to 1.3.3-r0
|
| Debian:12 | debian | runc | All versions |
| Debian:14 | debian | runc |
< 1.3.3+ds1-2 Fix: upgrade to 1.3.3+ds1-2
|
Original advisory text
runc: LSM labels can be bypassed with malicious config using dummy procfs files
runc is a CLI tool for spawning and running containers according to the OCI specification. In versions 1.2.7, 1.3.2 and 1.4.0-rc.2, an attacker can trick runc into misdirecting writes to /proc to other procfs files through the use of a racing container with shared mounts (we have also verified this attack is possible to exploit using a standard Dockerfile with docker buildx build as that also permits triggering parallel execution of containers with custom shared mounts configured). This redirect could be through symbolic links in a tmpfs or theoretically other methods such as regular bind-mounts. While similar, the mitigation applied for the related CVE, CVE-2019-19921, was fairly limited and effectively only caused runc to verify that when LSM labels are written they are actually procfs files. This issue is fixed in versions 1.2.8, 1.3.3, and 1.4.0-rc.3.
References
- https://github.com/opencontainers/runc/blob/v1.4.0-rc.2/RELEASES.md URL
- http://github.com/opencontainers/runc/commit/a41366e74080fa9f26a2cd3544e28014496... Patch
- http://github.com/opencontainers/runc/commit/fdcc9d3cad2f85954a241ccb910a61aaa1e... Patch
- https://github.com/opencontainers/runc/commit/3f925525b44d247e390e529e772a0dc0c0... Patch
- https://github.com/opencontainers/runc/security/advisories/GHSA-fh74-hm69-rqjw
- https://github.com/opencontainers/selinux/pull/237
- https://github.com/opencontainers/runc/commit/fdcc9d3cad2f85954a241ccb910a61aaa1...
- https://github.com/opencontainers/runc/commit/a41366e74080fa9f26a2cd3544e2801449...
- https://pkg.go.dev/github.com/cyphar/filepath-securejoin/pathrs-lite/procfs
- https://youtu.be/tGseJW_uBB8
- https://youtu.be/y1PaBzxwRWQ
- https://github.com/opencontainers/selinux/releases/tag/v1.13.0
- https://github.com/advisories/GHSA-cgrx-mc8f-2prm
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52881... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-52881 Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2025-52881 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2025-52881 Vendor Advisory
- https://github.com/opencontainers/runc/commit/44a0fcf685db051c80b8c269812bb177f5... Patch
- https://github.com/opencontainers/runc/commit/4b37cd93f86e72feac866442988b549b5b... Patch
- https://github.com/opencontainers/runc/commit/435cc81be6b79cdec73b4002c0dae549b2... Patch
- https://github.com/opencontainers/runc/commit/6fc191449109ea14bb7d61238f24a33fe0... Patch
- https://github.com/opencontainers/runc/commit/77889b56db939c323d29d1130f28f9aea2... Patch
- https://github.com/opencontainers/runc/commit/77d217c7c3775d8ca5af89e477e81568ef... Patch
- https://github.com/opencontainers/runc/commit/b3dd1bc562ed9996d1a0f249e056c16624... Patch
- https://github.com/opencontainers/runc/commit/d40b3439a9614a86e87b81a94c6811ec6f... Patch
- https://github.com/opencontainers/runc/commit/d61fd29d854b416feaaf128bf650325cd2... Patch
- https://github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f9019... Patch
- https://github.com/opencontainers/runc/commit/ed6b1693b8b3ae7eb0250a7e76fc888cda... Patch
- https://github.com/opencontainers/runc/commit/ff6fe1324663538167eca8b3d3eec61e1b... Patch
- https://github.com/opencontainers/runc/commit/ff94f9991bd32076c871ef0ad8bc1b7634... Patch
- https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2 Vendor Advisory
- https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm Vendor Advisory
- https://github.com/opencontainers/runc/security/advisories/GHSA-qw9x-cqr3-wc7r Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
8.4
High
Type
CWE-61UNIX Symbolic Link (Symlink) Following
CWE-363Race Condition Enabling Link Following
Timeline
Published6 Nov 2025
Updated4 Nov 2026
First seen6 Mar 2026
Sources
BELL-CVE-2025-52881 · OSV
GHSA-cgrx-mc8f-2prm · GHSA
CVE-2025-52881 · NVD
CVE-2025-52881 · OSV
DEBIAN-CVE-2025-52881 · OSV
Track software like this
Free during beta