GitHub Advisoryadvisory · Go

GHSA-g2j6-57v7-gm8c runc AppArmor bypass with symlinked /proc

MEDIUM Published 2023-03-30 Modified 2024-12-06 Official page ↗
Aliases
CVE-2023-28642
Ecosystem
Go
Packages
github.com/opencontainers/runc
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
Weaknesses
CWE-281, CWE-59
Reviewed
2023-03-30

Affected packages

• Go github.com/opencontainers/runc: < 1.1.5 → fixed in 1.1.5

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.

Related

Alias · CVE (1)

  • CVE-2023-28642 runc is a CLI tool for spawning and running containers according to the OCI specification. vulnerability

Weakness · CWE (2)

  • CWE-281 Improper Preservation of Permissions weakness
  • CWE-59 Improper Link Resolution Before File Access weakness

References