GHSA-c5pj-mqfh-rvc3: Withdrawn Runc Allows An Arbitrary Systemd Vulnerability
HIGHGHSA-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
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).
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.
Upgrade github.com/opencontainers/runc to 1.2.0-rc.1
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
GHSA-c5pj-mqfh-rvc3 Affected Withdrawn Versions
1 component(s)| 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?
Which Withdrawn versions are affected?
What version fixes GHSA-c5pj-mqfh-rvc3?
Is github.com/opencontainers/runc affected?
What is the CVSS score of GHSA-c5pj-mqfh-rvc3?
What CWE is associated with GHSA-c5pj-mqfh-rvc3?
How can I check Go dependencies for GHSA-c5pj-mqfh-rvc3?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}