opencontainers/runc · Security
runc AppArmor bypass with symlinked /proc
- GHSA ID
- GHSA-g2j6-57v7-gm8c
- CVE ID
- CVE-2023-28642
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CVSS v3
- 6.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
Description
Impact
It was found that AppArmor, and potentially SELinux, can be bypassed when /proc inside the container is symlinked with a specific mount configuration.
Patches
Fixed in runc v1.1.5, by prohibiting symlinked /proc: https://github.com/opencontainers/runc/pull/3785
This PR fixes CVE-2023-27561 as well.
Workarounds
Avoid using an untrusted container image.
CWEs
- CWE-59 · Improper Link Resolution Before File Access ('Link Following')
- CWE-281 · Improper Preservation of Permissions