Original description
Electerm before 5.9.0 contains an origin validation vulnerability in the MCP Server widget that allows remote attackers to execute commands by bypassing Host and Origin checks through DNS rebinding. Attackers can lure users to a page that rebinds to 127.0.0.1 and calls unauthenticated MCP tools on port 30837 to run OS commands locally and on open SSH sessions.
Affected products and versions
electerm electerm< 5.9.0Fixed in: 5.9.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-346 Origin Validation Error
References
- github.com/electerm/electerm/security/advisories/GHSA-45rj-2wq9-r9mr vendor advisory
- github.com/electerm/electerm/commit/572551df2be4bdd7964fa0f9102b42f49bc8de7b patch
- github.com/electerm/electerm/releases/tag/v5.9.0
- github.com/electerm/electerm/blob/v5.8.0/src/app/widgets/widget-mcp-server.js#L1142-L1161
- github.com/electerm/electerm/blob/v5.8.0/src/app/widgets/widget-mcp-server.js#L1191-L1222
- www.vulncheck.com/advisories/electerm-before-5.9.0-rce-via-dns-rebinding-in-mcp-server-wid
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.