CVE-2025-27612
Libcontainer is affected by capabilities elevation
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.9
Libcontainer is affected by capabilities elevation
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.
- Record
CVE-2025-27612- 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 - Weakness
- CWE-276
- Updated
- 2026-11-02
EUVDEUVD-2025-7244
5.9
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.
- Record
EUVD-2025-7244- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-5w4j-f78p-4wh9
5.9
Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66
Impact
In libcontainer, while creating a tenant container, the tenant builder accepts a list of capabilities to be added in the spec of tenant container. Code can be seen here . 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, GHSA-f3fp-gc8g-vw66 was opened on runc mentioning that setting inherited caps in any case for tenant container can lead to elevation of capabilities. For this, they added a fix here where they never set new inherited caps on tenant, and set ambient caps only if original container had inherited caps.
Similarly crun never sets inherited caps as can be seen here.
[!NOTE] This does not affect youki binary itself, as the exec implementation is partially broken and does not pass on the user-provided caps to tenant containers, this is only applicable if you are using libcontainer directly and using the tenant builder.
Workarounds
- Do not pass any user-provided capabilities to the tenant builder, in which case no capabilities will be set on tenant.
- Alternatively you can verify the capabilities of original container and filter the user passed capabilities before setting them on tenant.
References
- Record
GHSA-5w4j-f78p-4wh9- 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 - Weakness
- CWE-276
- Updated
- 2026-11-02
NVD
5.9
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.
- Record
CVE-2025-27612- 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 - Weakness
- CWE-276
- Updated
- 2026-11-02
OSV
5.9
Libcontainer is affected by capabilities elevation
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.
- Record
CVE-2025-27612- 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 - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGHSA-5w4j-f78p-4wh9
5.9
Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66
Impact
In libcontainer, while creating a tenant container, the tenant builder accepts a list of capabilities to be added in the spec of tenant container. Code can be seen here . 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, GHSA-f3fp-gc8g-vw66 was opened on runc mentioning that setting inherited caps in any case for tenant container can lead to elevation of capabilities. For this, they added a fix here where they never set new inherited caps on tenant, and set ambient caps only if original container had inherited caps.
Similarly crun never sets inherited caps as can be seen here.
[!NOTE] This does not affect youki binary itself, as the exec implementation is partially broken and does not pass on the user-provided caps to tenant containers, this is only applicable if you are using libcontainer directly and using the tenant builder.
Workarounds
- Do not pass any user-provided capabilities to the tenant builder, in which case no capabilities will be set on tenant.
- Alternatively you can verify the capabilities of original container and filter the user passed capabilities before setting them on tenant.
References
- Record
GHSA-5w4j-f78p-4wh9- 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 - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGO-2025-3543 No score
WITHDRAWN: Libcontainer is affected by capabilities elevation in github.com/opencontainers/runc
(This report has been withdrawn with reason: "Does not affect Go code."). https://nvd.nist.gov/vuln/detail/CVE-2025-27612 lists https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66 which caused automation to flag as Go; the affected repo is https://github.com/youki-dev/youki (Rust).
- Record
GO-2025-3543- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14937-1 No score
govulncheck-vulndb-0.0.20250327T184518-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250327T184518-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14937-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libcontainercrates.io |
before 0.5.3 | 0.5.3 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 30 CVEs |
before 0.0.20250327T184518-1.1 | 0.0.20250327T184518-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-27612 is a medium vulnerability (CVSS 5.9) in Youki-dev Youki, published March 21, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 7th percentile. Fixed in libcontainer 0.5.3.
References
github.com/youki-dev/youki/security/advisories/GHSA-5w4j-f78p-4wh9
github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66
github.com/youki-dev/youki/commit/747e342d2026fbf3a395db3e2a491ebef00082f1
github.com/youki-dev/youki/blob/9e63fa4da1672a78ca45100f3059a732784a5174/crates/libcontainer/src/container/tenant_builder.rs
github.com/containers/crun/blob/3ec6298abd79e144fbf3fa6db90793ff4c0516f9/src/exec.c
github.com/opencontainers/runc/blob/986451c24e17c8d4be3c454f60b1f7be4af3e8b4/exec.go
Show 36 moreShow less
man7.org/linux/man-pages/man7/capabilities.7.html
nvd.nist.gov/vuln/detail/CVE-2025-27612
github.com/advisories/GHSA-5w4j-f78p-4wh9
github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27612.json
github.com/youki-dev/youki
lists.opensuse.org/archives/list/[email protected]/thread/NEVFAGUWHTVZSJTUAIU6C4S26DP2KIGB
suse.com/security/cve/CVE-2024-25132
suse.com/security/cve/CVE-2024-53348
suse.com/security/cve/CVE-2024-53351
suse.com/security/cve/CVE-2024-7598
suse.com/security/cve/CVE-2024-7631
suse.com/security/cve/CVE-2024-9042
suse.com/security/cve/CVE-2024-9900
suse.com/security/cve/CVE-2025-1097
suse.com/security/cve/CVE-2025-1098
suse.com/security/cve/CVE-2025-1472
suse.com/security/cve/CVE-2025-1767
suse.com/security/cve/CVE-2025-1974
suse.com/security/cve/CVE-2025-24513
suse.com/security/cve/CVE-2025-24514
suse.com/security/cve/CVE-2025-24920
suse.com/security/cve/CVE-2025-25068
suse.com/security/cve/CVE-2025-25274
suse.com/security/cve/CVE-2025-27612
suse.com/security/cve/CVE-2025-27715
suse.com/security/cve/CVE-2025-27933
suse.com/security/cve/CVE-2025-29778
suse.com/security/cve/CVE-2025-29914
suse.com/security/cve/CVE-2025-29922
suse.com/security/cve/CVE-2025-29923
suse.com/security/cve/CVE-2025-30077
suse.com/security/cve/CVE-2025-30153
suse.com/security/cve/CVE-2025-30162
suse.com/security/cve/CVE-2025-30163
suse.com/security/cve/CVE-2025-30179
suse.com/security/cve/CVE-2025-30204