Miggo Logo

CVE-2025-27612:
Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66

5.9

CVSS Score

Basic Information

EPSS Score
-
Published
3/21/2025
Updated
3/21/2025
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
libcontainerrust

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t In li**ont*in*r, w*il* *r**tin* * t*n*nt *ont*in*r, t** t*n*nt *uil**r ****pts * list o* **p**iliti*s to ** ***** in t** sp** o* t*n*nt *ont*in*r. *o** **n ** s**n [**r*](*ttps://*it*u*.*om/youki-**v/youki/*lo*/****************************

Reasoning

T** vuln*r**ility st*mm** *rom *ow **p**iliti*s w*r* m*r*** in T*n*nt*ont*in*r*uil**r::**t_**p**iliti*s. T** ori*in*l impl*m*nt*tion un*on*ition*lly ***** us*r-provi*** **ps to in**rit**l*/*m*i*nt s*ts w**n t** m*in *ont*in*r *** **p**iliti*s, viol*t