Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1mM2ZwLWdjOGctdnc2Ns4AAm9H
Default inheritable capabilities for linux container should be empty
Impact
A bug was found in runc where runc exec --cap
executed processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).
This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.
Patches
This bug has been fixed in runc 1.1.2. Users should update to this version as soon as possible.
This fix changes runc exec --cap
behavior such that the additional capabilities granted to the process being executed (as specified via --cap
arguments) do not include inheritable capabilities.
In addition, runc spec
is changed to not set any inheritable capabilities in the created example OCI spec (config.json
) file.
Credits
The opencontainers project would like to thank Andrew G. Morgan for responsibly disclosing this issue in accordance with the opencontainers org security policy.
For more information
If you have any questions or comments about this advisory:
- Open an issue
- Email us at [email protected] if you think you’ve found a security bug
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mM2ZwLWdjOGctdnc2Ns4AAm9H
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: almost 2 years ago
CVSS Score: 5.9
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS Percentage: 0.00045
EPSS Percentile: 0.15527
Identifiers: GHSA-f3fp-gc8g-vw66, CVE-2022-29162
References:
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66
- https://nvd.nist.gov/vuln/detail/CVE-2022-29162
- https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5
- https://github.com/opencontainers/runc/releases/tag/v1.1.2
- https://lists.fedoraproject.org/archives/list/[email protected]/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y/
- https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html
- https://github.com/advisories/GHSA-f3fp-gc8g-vw66
Blast Radius: 26.1
Affected Packages
go:github.com/opencontainers/runc
Dependent packages: 7,425Dependent repositories: 27,022
Downloads:
Affected Version Ranges: < 1.1.2
Fixed in: 1.1.2
All affected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.1.0, 0.1.1, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.1.1
All unaffected versions: 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.12, 1.1.13, 1.1.14, 1.1.15, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4