CVE-2023-28642: AppArmor bypass with symlinked /proc in runc

Published Mar 29, 2023
·
Updated

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.

Other sources

runc is a CLI tool for spawning and running containers according to the OCI specification. It was found that AppArmor can be bypassed when /proc inside the container is symlinked with a specific mount configuration.

References:

https://github.com/opencontainers/runc/security/advisories/GHSA-g2j6-57v7-gm8c https://github.com/opencontainers/runc/pull/3785

— Red Hat

runc is a CLI tool for spawning and running containers according to the OCI specification. It was found that AppArmor can be bypassed when /proc inside the container is symlinked with a specific mount configuration. This issue has been fixed in runc version 1.1.5, by prohibiting symlinked /proc. See PR #3785 for details. users are advised to upgrade. Users unable to upgrade should avoid using an untrusted container image.

— Launchpad

Affected Software

12 affected componentsFixes available
redhat/runc<1.1.5
1.1.5
go/github.com/opencontainers/runc<1.1.5
1.1.5
linuxfoundation Runc<1.1.5
debian/runc<=1.0.0~rc93+ds1-5+deb11u3
1.0.0~rc93+ds1-5+deb11u51.1.5+ds1-1+deb12u11.1.15+ds1-2
alpine/runc<1.1.5-r0
1.1.5-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0
alpine/runc<1.1.4-r0
1.1.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/runc to a version that resolves this vulnerability.

    Fixed in 1.1.5
  2. Upgrade

    Upgrade go/github.com/opencontainers/runc to a version that resolves this vulnerability.

    Fixed in 1.1.5
  3. Upgrade

    Upgrade debian/runc to a version that resolves this vulnerability.

    Fixed in 1.0.0~rc93+ds1-5+deb11u5Fixed in 1.1.5+ds1-1+deb12u1Fixed in 1.1.15+ds1-2
  4. Upgrade

    Upgrade alpine/runc to a version that resolves this vulnerability.

    Fixed in 1.1.5-r0
  5. Upgrade

    Upgrade alpine/runc to a version that resolves this vulnerability.

    Fixed in 1.1.4-r0
  6. Upgrade

    Upgrade opencontainers/runc to a version that resolves this vulnerability.

    Fixed in 1.1.5
  7. Compensating control

    Avoid using an untrusted container image if unable to upgrade runc.

Event History

Mar 29, 2023
CVE Published
via MITRE·06:15 PM
Data Sourced
via MITRE·06:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Mar 30, 2023
Advisory Published
via GitHub·08:20 PM

Frequently Asked Questions

1

What is CVE-2023-28642?

CVE-2023-28642 is a vulnerability found in the runc CLI tool, which allows bypassing of AppArmor security when `/proc` inside a container is symlinked with a specific mount configuration.

2

What is the severity of CVE-2023-28642?

CVE-2023-28642 has a severity rating of medium with a severity value of 4.

3

How can the CVE-2023-28642 vulnerability be fixed?

The CVE-2023-28642 vulnerability can be fixed by upgrading to runc version 1.1.5 or higher.

4

Where can I find more information about CVE-2023-28642?

You can find more information about CVE-2023-28642 on the official GitHub page of runc and the Open Containers Initiative (OCI) security advisories.

5

What is the affected software for CVE-2023-28642?

The affected software for CVE-2023-28642 includes runc version 1.0.0~ up to but excluding 1.1.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203