CVE-2021-41088Remote code execution via the web UI backend of Elvish
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).
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | elvish | Fix pending | UBUNTU-CVE-2021-41088 | |
| Ubuntu 26.04 | elvish | Under investigation | UBUNTU-CVE-2021-41088 | |
| Ubuntu 25.10 | elvish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-41088 | |
| Ubuntu 24.04 | elvish | Under investigation | UBUNTU-CVE-2021-41088 | |
| Ubuntu 22.04 | elvish | Under investigation | UBUNTU-CVE-2021-41088 | |
| Ubuntu 20.04 | elvish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-41088 | |
| Ubuntu 18.04 | elvish | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-41088 | |
| Debian 14 | elvish | Fixed | 0.14.0-1 | DEBIAN-CVE-2021-41088 |
| Debian 13 | elvish | Fixed | 0.14.0-1 | DEBIAN-CVE-2021-41088 |
| Debian 12 | elvish | Fixed | 0.14.0-1 | DEBIAN-CVE-2021-41088 |
| Go library | github.com/elves/elvish | Fixed | 0.14.0 | GHSA-fpv6-f8jw-rc3r |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- elves elvish: affected: < 0.14.0
References
- https://github.com/elves/elvish/security/advisories/GHSA-fpv6-f8jw-rc3r
- https://github.com/elves/elvish/commit/ccc2750037bbbfafe9c1b7a78eadd3bd16e81fe5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.