CVE-2023-30623: Embano1/wip Arbitrary Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-rg3q-prf8-qxmp
CVSS 8.8
CWE-77
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-30623
GHSA Identifier GHSA-rg3q-prf8-qxmp
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Embano1/wip
Package Ecosystem GitHub Actions
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
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-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.

embano1/wip fixed: 2
Upgrade embano1/wip to 2
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 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

## Summary The `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. ## Details and Impact This 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. This 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. ## How to update existing workflows Replace the following line in your workflow using this action with the `v2` branch name or commit pointing to this branch: ```yaml uses: embano1/wip@v2 ``` Or using the exact commit: ```yaml uses: embano1/wip@c25450f77ed02c20d00b76ee3b33ff43838739a2 # v2 ```

CVE-2023-30623 Affected Embano1/wip Versions

1 component(s)
Fixed Versions:
2
Product / Package Ecosystem Affected Versions Fixed Version
embano1/wip
GitHub Actions
< 2
2

References

Frequently Asked Questions

What is CVE-2023-30623?
CVE-2023-30623 is a security vulnerability in Embano1/wip involving Arbitrary command injection in embano1/wip under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Embano1/wip versions are affected?
Affected versions include releases prior to 2 across affected packages: embano1/wip.
What version fixes CVE-2023-30623?
Upgrading to 2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is embano1/wip affected?
Yes, embano1/wip is affected in releases prior to 2. Upgrade your dependency to 2 or later.
What is the CVSS score of CVE-2023-30623?
CVE-2023-30623 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-30623?
CVE-2023-30623 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 GitHub Actions dependencies for CVE-2023-30623?
Run the dependency tree command: 'inspect dependencies for embano1/wip'. 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-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"
  }
}