CVE-2023-47105: Github.com/chaosblade io/chaosblade Chaosblade Vulnerable To OS Command Vulnerability

CRITICAL
Advisory Identifier: GHSA-723h-x37g-f8qm
CVSS 9.8
CWE-78 CWE-95
Published
Advisory Summary

CVE-2023-47105 is a CRITICAL (CVSS 9.8) chaosblade vulnerable to os command vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Github.com/chaosblade io/chaosblade libraries in the Go ecosystem. The issue involves chaosblade vulnerable to os command execution. Remediation is available by upgrading affected packages to version 1.7.4.

CVE-2023-47105 at a Glance

CVE Identifier CVE-2023-47105
GHSA Identifier GHSA-723h-x37g-f8qm
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Github.com/chaosblade io/chaosblade
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-47105

To remediate this vulnerability, upgrade all affected Github.com/chaosblade io/chaosblade 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/chaosblade-io/chaosblade fixed: 1.7.4
Upgrade github.com/chaosblade-io/chaosblade to 1.7.4
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/chaosblade-io/chaosblade

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-47105, inspect your project dependencies for Github.com/chaosblade io/chaosblade:

inspect dependencies for github.com/chaosblade-io/chaosblade

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

exec.CommandContext in Chaosblade 0.3 through 1.7.3, when server mode is used, allows OS command execution via the cmd parameter without authentication.

CVE-2023-47105 Affected Github.com/chaosblade io/chaosblade Versions

1 component(s)
Fixed Versions:
1.7.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/chaosblade-io/chaosblade
Go
≥ 0.0.3
< 1.7.4
1.7.4

References

Frequently Asked Questions

What is CVE-2023-47105?
CVE-2023-47105 is a security vulnerability in Github.com/chaosblade io/chaosblade involving Chaosblade vulnerable to OS command execution under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Github.com/chaosblade io/chaosblade versions are affected?
Affected versions include releases prior to 1.7.4 across affected packages: github.com/chaosblade-io/chaosblade.
What version fixes CVE-2023-47105?
Upgrading to 1.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/chaosblade-io/chaosblade affected?
Yes, github.com/chaosblade-io/chaosblade is affected in releases prior to 1.7.4. Upgrade your dependency to 1.7.4 or later.
What is the CVSS score of CVE-2023-47105?
CVE-2023-47105 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-47105?
CVE-2023-47105 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2023-47105?
Run the dependency tree command: 'inspect dependencies for github.com/chaosblade-io/chaosblade'. 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-723h-x37g-f8qm",
  "modified" : "2024-09-25T19:28:11Z",
  "published" : "2024-09-18T18:30:51Z",
  "aliases" : [ "CVE-2023-47105" ],
  "summary" : "Chaosblade vulnerable to OS command execution",
  "details" : "exec.CommandContext in Chaosblade 0.3 through 1.7.3, when server mode is used, allows OS command execution via the cmd parameter without authentication.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/chaosblade-io/chaosblade"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.3"
      }, {
        "fixed" : "1.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-47105"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chaosblade-io/chaosblade/commit/6bc73c31e14ea2b1bfc30f359e1fe952859d9adc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-723h-x37g-f8qm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/chaosblade-io/chaosblade"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chaosblade-io/chaosblade/blob/0a07380c9899febb2b544132783b376b44226cca/exec/os/executor.go#L68"
  }, {
    "type" : "WEB",
    "url" : "https://narrow-oatmeal-0c0.notion.site/ChaosBlade-Remote-Command-Execution-CVE-2023-47105-4f5459046488436caaec2bced6ff26d7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78", "CWE-95" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-18T19:34:07Z",
    "nvd_published_at" : "2024-09-18T17:15:18Z"
  }
}