<!-- XE-14549 · xe ssh Shell Command Injection (XE-2814) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-14549>. The page is the record; this is the same page for reading.*

XE-14549 · Bounty

# xe ssh Shell Command Injection (XE-2814)

Closed · duplicate
—claimed High
web
filed 2026-11-15 14:52 UTC
by rabakta

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   Node / API

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 19:45 UTC

Told
:   2026-11-20 19:45 UTC

### Patches

None linked.

### History

- [625784](https://bounty.xe.network/log/625784) 2026-11-20 19:45 UTC proposal.adopted
- [625783](https://bounty.xe.network/log/625783) 2026-11-20 19:45 UTC reply.sent
- [625782](https://bounty.xe.network/log/625782) 2026-11-20 19:45 UTC ticket.status new → closed
- [621360](https://bounty.xe.network/log/621360) 2026-11-20 19:44 UTC proposal.adopted
- [621359](https://bounty.xe.network/log/621359) 2026-11-20 19:44 UTC ticket.facts area
- [621358](https://bounty.xe.network/log/621358) 2026-11-20 19:44 UTC proposal.adopted
- [621357](https://bounty.xe.network/log/621357) 2026-11-20 19:44 UTC ticket.facts
- [621356](https://bounty.xe.network/log/621356) 2026-11-20 19:44 UTC proposal.adopted
- [621355](https://bounty.xe.network/log/621355) 2026-11-20 19:44 UTC ticket.facts
- [615078](https://bounty.xe.network/log/615078) 2026-11-20 15:45 UTC note.added
- [615076](https://bounty.xe.network/log/615076) 2026-11-20 15:45 UTC proposal.created
- [615075](https://bounty.xe.network/log/615075) 2026-11-20 15:45 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-14549) · [JSON](https://bounty.xe.network/v1/tickets/XE-14549) · [markdown](https://bounty.xe.network/XE-14549.md)

### Report

**Root cause**
cmd/xe/main.go:1204 interpolates leaseHash (user input) into ProxyCommand string shell injection.

proxyCmd :\= fmt.Sprintf(ssh -p %s -i %s ... %s@%s, gwPort, pemPath, leaseHash, gwHost)
cmd :\= exec.Command(ssh, sshArgs...)

**Impact**

- xe ssh abc; rm -rf / leaseHash injected executed by ssh shell
- RCE as node operator

**Fix**
Validate leaseHash is hex-only (64 chars).

**Related Code**

- cmd/xe/main.go:1204

### Thread

**Joseph Denne**team2026-11-20 19:45 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-14549 and says what differs; it is read like any other.
