CVE-2025-27612
MEDIUM 5.9CVSS 3.1Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66
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.
- Published
- 21 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-276
- Also known as
- GHSA-5w4j-f78p-4wh9GO-2025-3543
- Sources
- NVDJSONOSV GHSA-5w4j-f78p-4wh9JSONOSV GO-2025-3543JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | libcontainer | < 0.5.3 | 0.5.3 |
| OSV | Go | github.com/opencontainers/runc | all versions |
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66 · WEB
- https://github.com/youki-dev/youki/blob/9e63fa4da1672a78ca45100f3059a732784a5174/crates/libcontainer/src/container/tenant_builder.rs#L408 · WEB
- https://github.com/youki-dev/youki/commit/747e342d2026fbf3a395db3e2a491ebef00082f1 · WEB, FIX
- https://github.com/youki-dev/youki/security/advisories/GHSA-5w4j-f78p-4wh9 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-27612 · ADVISORY
- https://github.com/containers/crun/blob/3ec6298abd79e144fbf3fa6db90793ff4c0516f9/src/exec.c#L319 · WEB
- https://github.com/opencontainers/runc/blob/986451c24e17c8d4be3c454f60b1f7be4af3e8b4/exec.go#L234-L242 · WEB
- https://github.com/youki-dev/youki · PACKAGE
- https://man7.org/linux/man-pages/man7/capabilities.7.html · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 21 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Mar 2025)