Remote code execution via the web UI backend of Elvish
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-346.
Summary
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| elves | elvish | before 0.14.0 | 0.14.0 | Patch available | CNA |
| — | github.com/elves/elvish (Go) | before 0.14.0 | 0.14.0 | Patch available | GHSA-fpv6-f8jw-rc3r |
- elvish Vendorelves Affected before 0.14.0 Fixed in 0.14.0 Patch available CNA
- github.com/elves/elvish (Go) Vendor— Affected before 0.14.0 Fixed in 0.14.0 Patch available GHSA-fpv6-f8jw-rc3r
Remediation
- Fix · CNA elvish (elves) Fixed in 0.14.0
- Fix · GHSA-fpv6-f8jw-rc3r github.com/elves/elvish (Go) Fixed in 0.14.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41088
- 2026-10-03 Alias added: GHSA-fpv6-f8jw-rc3r
References
Sources
- CVE-2021-41088 · CVE Program
- CVE-2021-41088 · NVD
- FIRST EPSS
- GHSA-fpv6-f8jw-rc3r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences