CVE-2023-27561: Github.com/opencontainers/runc Opencontainers Runc Incorrect Authorization Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-vpvm-3wq2-2wvm
CVSS 7.0
CWE-706
Published
Advisory Summary

CVE-2023-27561 is a HIGH (CVSS 7.0) opencontainers runc incorrect authorization vulnerability vulnerability (CWE-706: Use of Incorrectly-Resolved Name or Reference) affecting Github.com/opencontainers/runc libraries in the Go ecosystem. The issue involves opencontainers runc incorrect authorization vulnerability. Remediation is available by upgrading affected packages to version 1.1.5.

CVE-2023-27561 at a Glance

CVE Identifier CVE-2023-27561
GHSA Identifier GHSA-vpvm-3wq2-2wvm
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-706: Use of Incorrectly-Resolved Name or Reference
Affected Product Github.com/opencontainers/runc
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-27561

To remediate this vulnerability, upgrade all affected Github.com/opencontainers/runc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/opencontainers/runc fixed: 1.1.5
Upgrade github.com/opencontainers/runc to 1.1.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/opencontainers/runc

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-27561, inspect your project dependencies for Github.com/opencontainers/runc:

inspect dependencies for github.com/opencontainers/runc

Analyze the terminal output to locate any version of Github.com/opencontainers/runc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-706: Use of Incorrectly-Resolved Name or Reference, where the product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere. In Github.com/opencontainers/runc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

runc 1.0.0-rc95 through 1.1.4 has Incorrect Access Control leading to Escalation of Privileges, related to `libcontainer/rootfs_linux.go`. To exploit this, an attacker must be able to spawn two containers with custom volume-mount configurations, and be able to run custom images. NOTE: this issue exists because of a CVE-2019-19921 regression.

CVE-2023-27561 Affected Github.com/opencontainers/runc Versions

1 component(s)
Fixed Versions:
1.1.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/opencontainers/runc
Go
≥ 1.0.0-rc95
< 1.1.5
1.1.5

References

Github.com/opencontainers/runc Source Repository REPOSITORY
https://github.com/opencontainers/runc
Github.com/opencontainers/runc Source Repository REPOSITORY
https://gist.github.com/LiveOverflow/c937820b688922eb127fb760ce06dab9
NVD — CVE-2023-27561 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-27561
Github.com/opencontainers/runc Source Repository REPOSITORY
https://github.com/opencontainers/runc/issues/2197#issuecomment-1437617334
Github.com/opencontainers/runc Source Repository REPOSITORY
https://github.com/opencontainers/runc/issues/3751
Github.com/opencontainers/runc Source Repository REPOSITORY
https://github.com/opencontainers/runc/pull/3785
Github.com/opencontainers/runc Security Information SECURITY
https://security.netapp.com/advisory/ntap-20241206-0004
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html
Github.com/opencontainers/runc Release RELEASE
https://github.com/opencontainers/runc/releases/tag/v1.1.5

Frequently Asked Questions

What is CVE-2023-27561?
CVE-2023-27561 is a security vulnerability in Github.com/opencontainers/runc involving Opencontainers runc Incorrect Authorization vulnerability under CWE-706: Use of Incorrectly-Resolved Name or Reference.
Which Github.com/opencontainers/runc versions are affected?
Affected versions include releases prior to 1.1.5 across affected packages: github.com/opencontainers/runc.
What version fixes CVE-2023-27561?
Upgrading to 1.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/opencontainers/runc affected?
Yes, github.com/opencontainers/runc is affected in releases prior to 1.1.5. Upgrade your dependency to 1.1.5 or later.
What is the CVSS score of CVE-2023-27561?
CVE-2023-27561 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-27561?
CVE-2023-27561 is classified under CWE-706: Use of Incorrectly-Resolved Name or Reference (The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.).
How can I check Go dependencies for CVE-2023-27561?
Run the dependency tree command: 'inspect dependencies for github.com/opencontainers/runc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vpvm-3wq2-2wvm",
  "modified" : "2024-12-06T15:31:17Z",
  "published" : "2023-03-03T21:30:19Z",
  "aliases" : [ "CVE-2023-27561" ],
  "summary" : "Opencontainers runc Incorrect Authorization vulnerability",
  "details" : "runc 1.0.0-rc95 through 1.1.4 has Incorrect Access Control leading to Escalation of Privileges, related to `libcontainer/rootfs_linux.go`. To exploit this, an attacker must be able to spawn two containers with custom volume-mount configurations, and be able to run custom images. NOTE: this issue exists because of a CVE-2019-19921 regression.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/opencontainers/runc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-rc95"
      }, {
        "fixed" : "1.1.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-27561"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/issues/2197#issuecomment-1437617334"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/issues/3751"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/pull/3785"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20241206-0004"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/releases/tag/v1.1.5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opencontainers/runc"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/LiveOverflow/c937820b688922eb127fb760ce06dab9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-706" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-03T22:43:16Z",
    "nvd_published_at" : "2023-03-03T19:15:00Z"
  }
}