Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') Affecting github.com/chaosblade-io/chaosblade/cli/cmd package, versions >=0.3.0 <1.7.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.44% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMCHAOSBLADEIOCHAOSBLADECLICMD-8056951
  • published 19 Sep 2024
  • disclosed 18 Sep 2024
  • credit Unknown

How to fix?

Upgrade github.com/chaosblade-io/chaosblade/cli/cmd to version 1.7.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') via the exec.CommandContext function. An attacker can execute arbitrary OS commands by supplying a malicious cmd parameter.

Note: This is only exploitable when server mode is used without authentication.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None