CVE-2023-30623: Embano1/wip Arbitrary Command Injection Vulnerability
HIGHCVE-2023-30623 is a HIGH (CVSS 8.8) arbitrary command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Embano1/wip libraries in the GitHub Actions ecosystem. The issue involves arbitrary command injection in embano1/wip. Remediation is available by upgrading affected packages to version 2.
CVE-2023-30623 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-30623
To remediate this vulnerability, upgrade all affected Embano1/wip 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 embano1/wip to 2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for embano1/wip
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-30623, inspect your project dependencies for Embano1/wip:
inspect dependencies for embano1/wip
Analyze the terminal output to locate any version of Embano1/wip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2), 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 Embano1/wip, 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
CVE-2023-30623 Affected Embano1/wip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
embano1/wip
|
GitHub Actions |
< 2
|
2
|
References
Frequently Asked Questions
What is CVE-2023-30623?
Which Embano1/wip versions are affected?
What version fixes CVE-2023-30623?
Is embano1/wip affected?
What is the CVSS score of CVE-2023-30623?
What CWE is associated with CVE-2023-30623?
How can I check GitHub Actions dependencies for CVE-2023-30623?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rg3q-prf8-qxmp",
"modified" : "2023-04-25T16:34:43Z",
"published" : "2023-04-24T22:32:32Z",
"aliases" : [ "CVE-2023-30623" ],
"summary" : "Arbitrary command injection in embano1/wip ",
"details" : "## Summary\nThe `embano1/wip` action uses the `github.event.pull_request.title` parameter in an insecure way. The title parameter is used in a run statement - resulting in a command injection vulnerability due to string interpolation.\n\n## Details and Impact\nThis vulnerability can be triggered by any user on GitHub. They just need to create a pull request with a commit message containing an exploit. (Note that first-time PR requests will not be run - but the attacker can submit a valid PR before submitting an invalid PR). The commit can be genuine, but the commit message can be malicious. \n\nThis can be used to execute code on the GitHub runners (potentially use it for crypto-mining, and waste your resources) and can be used to exfiltrate any secrets that you use in the CI pipeline (including repository tokens). [Here](https://securitylab.github.com/research/github-actions-untrusted-input/) is a set of blog posts by Github's security team explaining this issue.\n\n## How to update existing workflows\n\nReplace the following line in your workflow using this action with the `v2` branch name or commit pointing to this branch:\n\n```yaml\n uses: embano1/wip@v2\n```\n\nOr using the exact commit:\n\n```yaml\n uses: embano1/wip@c25450f77ed02c20d00b76ee3b33ff43838739a2 # v2\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "GitHub Actions",
"name" : "embano1/wip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/embano1/wip/security/advisories/GHSA-rg3q-prf8-qxmp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30623"
}, {
"type" : "WEB",
"url" : "https://github.com/embano1/wip/commit/c25450f77ed02c20d00b76ee3b33ff43838739a2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/embano1/wip"
}, {
"type" : "WEB",
"url" : "https://securitylab.github.com/research/github-actions-untrusted-input"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-24T22:32:32Z",
"nvd_published_at" : "2023-04-24T22:15:09Z"
}
}