🛡️ GHSA-c279-989m-238f — sliver
Description
Sliver: Nil Pointer Dereference in tunnelCloseHandler causes panic when a reverse tunnel (rportfwd) close is attempted
Summary
A nil pointer dereference in tunnelCloseHandler causes the handler goroutine to panic whenever a reverse tunnel (rportfwd) close is attempted. Both the legitimate close path AND the unauthorized close path dereference tunnel.SessionID where tunnel is guaranteed nil. This means rportfwd tunnels can never be cleanly closed, and any authenticated implant can trigger repeated goroutine panics.
Details
File: server/handlers/sessions.go lines 172 and 175
The function enters an else block precisely because core.Tunnels.Get(tunnelData.TunnelID) returned nil. Both conditions inside that else block then dereference tunnel.SessionID instead of rtunnel.SessionID:
```go
} else {
rtunnel := rtunnels.GetRTunnel(tunnelData.TunnelID)
if rtunnel != nil && session.ID == tunnel.SessionID { // LINE 172 — nil deref
rtunnel.Close()
rtunnels.RemoveRTunnel(rtunnel.ID)
} else if rtunnel != nil && session.ID != tunnel.SessionID { // LINE 175 — nil deref
sessionHandlerLog.Warnf("...")
}
}
```
Note: The identical bug was already fixed in tunnelDataHandler at lines 124/126 (correctly uses rtunnel.SessionID), but the fix was
not applied to tunnelCloseHandler.
PoC
```go
tunnel := GetTunnel(999) // returns nil — no normal tunnel with this ID
// tunnel is nil here
rtunnel := GetRTunnel(999) // returns valid rtunnel owned by session-AAAA
// Both lines below panic with:
// runtime error: invalid memory address or nil pointer dereference
if rtunnel != nil && sessionID == tunnel.SessionID { ... } // line 172
} else if rtunnel != nil && sessionID != tunnel.SessionID { ... } // line 175
```
Confirmed on master commit 7ac4db3fa with standalone reproducer.
Output:
```
PANIC on line 172 (legitimate close): runtime error: invalid memory address or nil pointer dereference
PANIC on line 175 (unauthorized close): runtime error: invalid memory address or nil pointer dereference
```



Impact
- rportfwd tunnels cannot be closed — functional regression
- Any authenticated implant can trigger repeated handler goroutine panics
- rtunnel map entries leak (never cleaned up on close failure)
recoverAndLogPanic()prevents full server crash but silently drops the close operation
Fix
Replace tunnel.SessionID with rtunnel.SessionID on both lines:
```diff
- if rtunnel != nil && session.ID == tunnel.SessionID {
+ if rtunnel != nil && session.ID == rtunnel.SessionID {
rtunnel.Close()
rtunnels.RemoveRTunnel(rtunnel.ID)
- } else if rtunnel != nil && session.ID != tunnel.SessionID {
+ } else if rtunnel != nil && session.ID != rtunnel.SessionID {
```
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
GHSA-c279-989m-238f is classified as CWE-476: NULL Pointer Dereference. A pointer that can be null is used without a check, crashing the process.
Affected software
GHSA-c279-989m-238f is recorded against 1 package.
- github.com/bishopfox/sliver
Timeline and source
Published on 29 March 2026 and last revised on 2 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| github.com/bishopfox/sliver | — | — |
References
Similar Threats
- Unknown GO-2026-4899
- High CVE-2026-34227
- Medium CVE-2026-32941
- Medium CVE-2026-29781
- Unknown GO-2026-4548
More GHSA C advisories
Browse all of GHSA C in the advisory index.
- GHSA-c32p-wcqj-j677
- GHSA-c39w-3pjx-qc7m
- GHSA-c42h-56wx-h85q
- GHSA-c45c-39f6-6gw9
- GHSA-c55g-rp4x-fx84
- GHSA-c58j-88f5-h53f
- GHSA-c65f-x25w-62jv
- GHSA-c85w-x26q-ch87
- GHSA-c439-chv8-8g2j
- GHSA-c447-w54g-f55j
- GHSA-c534-2w9c-x7fm
- GHSA-c636-cg5r-2498
- GHSA-c737-jhwr-fqxj
- GHSA-c873-wfhp-wx5m
- GHSA-c875-h985-hvrc
- GHSA-c892-cwq6-qrqf
Site Security Check
Is sliver part of your stack?
GHSA-c279-989m-238f is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.