{"id":"CVE-2021-41088","published":"2021-09-23T19:55:10Z","modified":"2024-08-04T02:59:31Z","title":"Remote code execution via the web UI backend of Elvish","vendor":"elves","product":"elvish","tier":"tail","description":{"text":"Elvish is a programming language and interactive shell, combined into one package. In versions prior to 0.14.0 Elvish's web UI backend (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. All Elvish releases from 0.14.0 onward no longer include the the web UI, although it is still possible for the user to build a version from source that includes the web UI. The issue can be patched for previous versions by removing the web UI (found in web, pkg/web or pkg/prog/web, depending on the exact version).","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00537,"percentile":0.38714,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/elves/elvish/security/advisories/GHSA-fpv6-f8jw-rc3r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/elves/elvish/commit/ccc2750037bbbfafe9c1b7a78eadd3bd16e81fe5","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":7.74},{"name":"CVSS severity","points":5.6}]},"vendorSlug":"elves","affectedVersions":[{"vendor":"elves","product":"elvish","versions":["< 0.14.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/elves/elvish","vulnerableRanges":["<0.14.0"],"patched":["0.14.0"],"from":["GHSA-fpv6-f8jw-rc3r","GO-2022-0937"],"provenance":"source"}],"summary":{"text":"The Elvish shell and programming language, in versions before 0.14.0, contains a flaw in the origin checking of the web UI backend started by elvish -web, which hosts an endpoint that executes code sent from the web UI. An attacker can run arbitrary code on the user's machine by getting them to visit a malicious or compromised website while the web UI backend is open, since the backend does not correctly verify where requests come from, so the attack requires user interaction and that the web UI backend be running.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:29Z"},"euvd":{"id":"EUVD-2021-2056","exploited":false,"provenance":"source"}}