Go
CVE-2026-115578
go-guerrilla crashes on a bare XCLIENT command (7-byte slice off-by-one panic)
- Severity
- High 7.5
- Published
- 20 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.6.7-1
- Exploit chance
- 0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-hghq-53p7-c582
- Sources
- OSV.dev and GitHub
Description
The defect Confirmed at HEAD. server.go: cmdXCLIENT = []byte("XCLIENT") is 7 bytes (line 78), so the dispatch match cmdXCLIENT.match(cmd) only guarantees len(input) >= 7. The handler then slices input[8:] (line 586):
case sc.XClientOn && cmdXCLIENT.match(cmd): if toks := bytes.Split(input[8:], []byte{' '}); len(toks) > 0 { // line 586
A client sending the bare command XCLIENT (exactly 7 bytes) hits input[8:7] and panics runtime error: slice bounds out of range [8:7]. handleClient runs in the per-connection goroutine (server.go:391) which has no recover(); the only recover() calls are in the backend mail-processing workers (a different goroutine never reached during command parsing), so the unrecovered panic crashes the whole SMTP daemon.
Input and attacker Connect to the SMTP port, then send XCLIENT\r\n (a bare LF also works; no HELO needed). Precondition: xclient_on: true (off by default, but a documented nginx-fronted deployment; go-guerrilla does not restrict who may send…
Affected software
| Software | Affected versions |
|---|---|
github.com/phires/go-guerrillaGo · osv:Go:github.com/phires/go-guerrilla |
|
About github.com/phires/go-guerrilla
This is the only vulnerability in github.com/phires/go-guerrilla in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115578
- GitHub Advisory Database https://github.com/advisories/GHSA-hghq-53p7-c582