# CVE-2021-41088: Remote code execution via the web UI backend of Elvish

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2021-09-23T19:55:10.000Z
- Modified: 2026-07-08T06:29:05.968Z
- Also known as: GHSA-fpv6-f8jw-rc3r, GO-2022-0937
- Weaknesses: CWE-346, CWE-668
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- elves elvish: < 0.14.0
- github.com/elves/elvish (Go): before 0.14.0
- elv elvish: before 0.14.0

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/elves/elvish/security/advisories/GHSA-fpv6-f8jw-rc3r> (advisory, third-party-advisory, web)
- <https://github.com/elves/elvish/commit/ccc2750037bbbfafe9c1b7a78eadd3bd16e81fe5> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41088> (advisory)
- <https://github.com/elves/elvish> (package)

## Sources

- CVE List: [CVE-2021-41088](https://www.cve.org/CVERecord?id=CVE-2021-41088), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fpv6-f8jw-rc3r](https://github.com/advisories/GHSA-fpv6-f8jw-rc3r), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0937](https://pkg.go.dev/vuln/GO-2022-0937), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-41088](https://nvd.nist.gov/vuln/detail/CVE-2021-41088), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41088 · Whole record: https://cve.day/CVE-2021-41088.json · Rebuilt by cve.day 2026-11-25T22:58:04.146Z
