{"id":"CVE-2025-27612","published":"2025-03-21T14:24:28Z","modified":"2025-03-21T15:20:00Z","title":"Libcontainer is affected by capabilities elevation","vendor":"youki-dev","product":"youki","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00178,"percentile":0.07534,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/youki-dev/youki/security/advisories/GHSA-5w4j-f78p-4wh9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66","tags":["x_refsource_MISC"]},{"url":"https://github.com/youki-dev/youki/commit/747e342d2026fbf3a395db3e2a491ebef00082f1","tags":["x_refsource_MISC"]},{"url":"https://github.com/youki-dev/youki/blob/9e63fa4da1672a78ca45100f3059a732784a5174/crates/libcontainer/src/container/tenant_builder.rs#L408","tags":["x_refsource_MISC"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.51},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"youki-dev","affectedVersions":[{"vendor":"youki-dev","product":"youki","versions":["< 0.5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-21T15:19:54.521787Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"libcontainer","vulnerableRanges":["<0.5.3"],"patched":["0.5.3"],"from":["GHSA-5w4j-f78p-4wh9"],"provenance":"source"}],"summary":{"text":"The flaw affects the tenant builder in libcontainer, the container control library used by youki-dev's youki project, where capabilities provided in a tenant container's spec are merged with, or wrongly inherit, the main container's capabilities. An attacker with local access can exploit this when libcontainer is used directly and the tenant builder is in use, with no privileges or user interaction required, to gain elevated capabilities in the tenant container; the youki binary itself is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:43Z"},"euvd":{"id":"EUVD-2025-7244","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opencontainers-runc-cve-2022-29162","parents":[{"from":"CVE-2022-29162","to":"CVE-2025-27612","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"However, setting inherited caps in any case for tenant container can lead to elevation of capabilities, similar to CVE-2022-29162.","from":"CVE.org","in":"CVE-2025-27612"},{"kind":"osv-related","provenance":"source","id":"GHSA-f3fp-gc8g-vw66","via":"related"},{"kind":"osv-related","provenance":"source","id":"GO-2025-3543","via":"reference","url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66"},{"kind":"osv-related","provenance":"source","id":"GHSA-5w4j-f78p-4wh9","via":"reference","url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66"}]}]}}