CVE-2025-27612
libcontainer is a library for container control. Prior to libcontainer 0.5.3, while creating a tenant container, the tenant builder accepts a list of capabilities to be added in the spec of tenant container. The logic here adds the given capabilities to all capabilities of main container if present in spec, otherwise simply set provided capabilities as capabilities of the tenant container. However, setting inherited caps in any case for tenant container can lead to elevation of capabilities, similar to CVE-2022-29162. This does not affect youki binary itself. This is only applicable if you are using libcontainer directly and using the tenant builder.
EPSS 0.05% · 14.6th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| youki-dev | youki | < 0.5.3, < 0.5.3 |
| crates.io | libcontainer | 0, 0 |
Timeline
- Jan 21, 1970 Security Advisory
- Mar 21, 2025 CVE Published
- Mar 21, 2025 Coalition ESS Score
- Mar 21, 2025 PoC Published
- Mar 22, 2025 EPSS Score
- Apr 4, 2025 EPSS Score
- Apr 13, 2025 Coalition ESS Score
- Apr 17, 2025 EPSS Score
- May 1, 2025 EPSS Score
- May 14, 2025 EPSS Score
- May 27, 2025 EPSS Score
- Jun 9, 2025 EPSS Score
References
- https://github.com/youki-dev/youki/security/advisories/GHSA-5w4j-f78p-4wh9 url
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66 url
- https://github.com/youki-dev/youki/commit/747e342d2026fbf3a395db3e2a491ebef00082f1 url
- https://github.com/youki-dev/youki/blob/9e63fa4da1672a78ca45100f3059a732784a5174/crates/libcontainer/src/container/tenant_builder.rs#L408 url
- https://nvd.nist.gov/vuln/detail/CVE-2025-27612 advisory
- https://github.com/containers/crun/blob/3ec6298abd79e144fbf3fa6db90793ff4c0516f9/src/exec.c#L319 url
- https://github.com/opencontainers/runc/blob/986451c24e17c8d4be3c454f60b1f7be4af3e8b4/exec.go#L234-L242 url
- https://github.com/youki-dev/youki package
- https://man7.org/linux/man-pages/man7/capabilities.7.html url