GHSA-c5pj-mqfh-rvc3: Withdrawn Runc Allows An Arbitrary Systemd Vulnerability

HIGH
CVSS 7.2
CWE-77
Published
Advisory Summary

GHSA-c5pj-mqfh-rvc3 is a HIGH (CVSS 7.2) runc allows an arbitrary systemd vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Withdrawn libraries in the Go ecosystem. The issue involves runc allows an arbitrary systemd property to be injected. Remediation is available by upgrading affected packages to version 1.2.0-rc.1.

GHSA-c5pj-mqfh-rvc3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c5pj-mqfh-rvc3
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Withdrawn
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.2

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

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

How to Fix GHSA-c5pj-mqfh-rvc3

To remediate this vulnerability, upgrade all affected Withdrawn 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.2.0-rc.1
Upgrade github.com/opencontainers/runc to 1.2.0-rc.1
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 GHSA-c5pj-mqfh-rvc3, inspect your project dependencies for Withdrawn:

inspect dependencies for github.com/opencontainers/runc

Analyze the terminal output to locate any version of Withdrawn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0-rc.1), 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Withdrawn, 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

## Withdrawn Advisory This advisory has been withdrawn because it was incorrectly attributed to runc. Please see the issue [here](https://github.com/opencontainers/runc/issues/4263) for more information. ## Original Description A flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation. Any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system. This issue has its root in how runc handles Config Annotations lists.

GHSA-c5pj-mqfh-rvc3 Affected Withdrawn Versions

1 component(s)
Fixed Versions:
1.2.0-rc.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/opencontainers/runc
Go
< 1.2.0-rc.1
1.2.0-rc.1

References

Frequently Asked Questions

What is GHSA-c5pj-mqfh-rvc3?
GHSA-c5pj-mqfh-rvc3 is a security vulnerability in Withdrawn involving Runc allows an arbitrary systemd property to be injected under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Withdrawn versions are affected?
Affected versions include releases prior to 1.2.0-rc.1 across affected packages: github.com/opencontainers/runc.
What version fixes GHSA-c5pj-mqfh-rvc3?
Upgrading to 1.2.0-rc.1 (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.2.0-rc.1. Upgrade your dependency to 1.2.0-rc.1 or later.
What is the CVSS score of GHSA-c5pj-mqfh-rvc3?
GHSA-c5pj-mqfh-rvc3 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-c5pj-mqfh-rvc3?
GHSA-c5pj-mqfh-rvc3 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for GHSA-c5pj-mqfh-rvc3?
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-c5pj-mqfh-rvc3",
  "modified" : "2024-06-05T18:30:34Z",
  "published" : "2024-04-26T06:30:34Z",
  "withdrawn" : "2024-04-30T09:37:23Z",
  "aliases" : [ ],
  "summary" : "Withdrawn: Runc allows an arbitrary systemd property to be injected",
  "details" : "## Withdrawn Advisory\n\nThis advisory has been withdrawn because it was incorrectly attributed to runc. Please see the issue [here](https://github.com/opencontainers/runc/issues/4263) for more information.\n\n## Original Description\n\nA flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation. Any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system. This issue has its root in how runc handles Config Annotations lists.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/opencontainers/runc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.0-rc.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cri-o/cri-o/security/advisories/GHSA-2cgq-h8xw-2v5j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3154"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/pull/4217"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runc/commit/3db0871f1cf25c7025861ba0d51d25794cb21623"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2669"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2672"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2784"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3496"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-3154"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2272532"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opencontainers/runc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/opencontainers/runtime-spec/blob/main/features.md#unsafe-annotations-in-configjson"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-26T22:44:51Z",
    "nvd_published_at" : "2024-04-26T04:15:09Z"
  }
}