CVE-2025-27612:
Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66
5.9
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/21/2025
Updated
3/21/2025
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
libcontainer | rust |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from how capabilities were merged in TenantContainerBuilder::get_capabilities. The original implementation unconditionally added user-provided caps to inheritable/ambient sets when the main container had capabilities, violating security boundaries. The fix introduced proper checks (only setting ambient caps if original container had inheritable caps) and removed the vulnerable merging logic. The commit diff shows this function was completely replaced, and the CVE description explicitly references line 408 in tenant_builder.rs as the vulnerable code location.