CVEfocus › CVE database › CVE-2021-41088

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

CVSS 8.0 HighEPSS 0.5% (higher than 39% of CVEs)Published 2021-09-23Updated 2024-08-04Assigner: GitHub_M

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

CWE-668

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

4Fixed
1Fix pending
3Under investigation
3Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10elvishFix pendingUBUNTU-CVE-2021-41088
Ubuntu 26.04elvishUnder investigationUBUNTU-CVE-2021-41088
Ubuntu 25.10elvishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-41088
Ubuntu 24.04elvishUnder investigationUBUNTU-CVE-2021-41088
Ubuntu 22.04elvishUnder investigationUBUNTU-CVE-2021-41088
Ubuntu 20.04elvishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-41088
Ubuntu 18.04elvishWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-41088
Debian 14elvishFixed0.14.0-1DEBIAN-CVE-2021-41088
Debian 13elvishFixed0.14.0-1DEBIAN-CVE-2021-41088
Debian 12elvishFixed0.14.0-1DEBIAN-CVE-2021-41088
Go librarygithub.com/elves/elvishFixed0.14.0GHSA-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.

References

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.