Arbitrary Code Execution Affecting github.com/elves/elvish package, versions <0.14.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (61st 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 IDSNYK-GOLANG-GITHUBCOMELVESELVISH-1658289
  • published24 Sept 2021
  • disclosed23 Sept 2021
  • creditUnknown

Introduced: 23 Sep 2021

CVE-2021-41088  (opens in a new tab)
CWE-668  (opens in a new tab)

How to fix?

Upgrade github.com/elves/elvish to version 0.14.0 or higher.

Overview

github.com/elves/elvish is an expressive programming language and a versatile interactive shell, combined into one seamless package. It runs on Linux, BSDs, macOS and Windows.

Affected versions of this package are vulnerable to Arbitrary Code Execution. Elvish's backend for the experimental web UI (started by elvish -web) hosts an endpoint that allows executing the code sent from the web UI. The backend does not check the origin of requests correctly. As a result, if the user has the web UI backend open and visits a compromised or malicious website, the website can send arbitrary code to the endpoint in localhost.

References

CVSS Scores

version 3.1