# CVE-2025-27612: Libcontainer is affected by capabilities elevation

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-03-21T14:24:28.756Z
- Modified: 2026-06-17T09:03:54.767Z
- Also known as: GHSA-5w4j-f78p-4wh9, GO-2025-3543
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- youki-dev youki: < 0.5.3
- libcontainer (crates.io): before 0.5.3
- github.com/opencontainers/runc (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/youki-dev/youki/security/advisories/GHSA-5w4j-f78p-4wh9> (web)
- <https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66> (web)
- <https://github.com/youki-dev/youki/commit/747e342d2026fbf3a395db3e2a491ebef00082f1> (fix, web)
- <https://github.com/youki-dev/youki/blob/9e63fa4da1672a78ca45100f3059a732784a5174/crates/libcontainer/src/container/tenant_builder.rs#L408> (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)

## Sources

- CVE List: [CVE-2025-27612](https://www.cve.org/CVERecord?id=CVE-2025-27612), CVE Terms of Use, modified 2025-03-21
- GitHub Advisory Database: [GHSA-5w4j-f78p-4wh9](https://github.com/advisories/GHSA-5w4j-f78p-4wh9), CC-BY-4.0, modified 2026-02-04
- Go Vulnerability Database: [GO-2025-3543](https://pkg.go.dev/vuln/GO-2025-3543), CC-BY-4.0, modified 2025-03-26
- NVD: [CVE-2025-27612](https://nvd.nist.gov/vuln/detail/CVE-2025-27612), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27612 · Whole record: https://cve.day/CVE-2025-27612.json · Rebuilt by cve.day 2026-11-25T22:58:55.407Z
