6.3medium
Sliver does not restricted traffic between Wireguard clients.
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q8j9-34qf-7vq7GO-2025-4079
Description
Sliver is a command and control framework that uses a custom Wireguard netstack. In versions 1.5.43 and earlier, and in development version 1.6.0-dev, the netstack does not limit traffic between Wireguard clients. This allows clients to communicate with each other unrestrictedly, potentially enabling leaked or recovered keypairs to be used to attack operators or allowing port forwardings to be accessible from other implants.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| BishopFox sliver | <= 1.5.43 | CVE List |
| github.com/BishopFox/sliver (Go) | before 1.5.44 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Sliver is a command and control framework that uses a custom Wireguard netstack. In versions 1.5.43 and earlier, and in development version 1.6.0-dev, the netstack does not limit traffic between Wireguard clients. This allows clients to communicate with each other unrestrictedly, potentially enabling leaked or recovered keypairs to be used to attack operators or allowing port forwardings to be accessible from other implants.
GitHub Advisory Database
Summary
Sliver's custom Wireguard netstack doesn't limit traffic between Wireguard clients, this could lead to:
- Leaked/recovered keypair (from a beacon) being used to attack operators.
- Port forwardings usable from other implants.
Details
-
Sliver treat operators' Wireguard config and beacon/session's Wireguard config equally, they both connect to the wireguard listener created from the CLI.
-
The current netstack implementation does not filter traffic between clients. I think this piece of code handle traffic between clients, from experimental results clients can ping and connect to each other freely, and I didn't see any filtering here either:
File: server\c2\wireguard.go
246: func socketWGWriteEnvelope(connection net.Conn, envelope *sliverpb.Envelope) error {
247: data, err := proto.Marshal(envelope)
248: if err != nil {
249: wgLog.Errorf("Envelope marshaling error: %v", err)
250: return err
251: }
252: dataLengthBuf := new(bytes.Buffer)
253: binary.Write(dataLengthBuf, binary.LittleEndian, uint32(len(data)))
254: connection.Write(dataLengthBuf.Bytes())
255: connection.Write(data)
256: return nil
257: }
258:
-
The docs says to use a Wireguard clients and operator wg-config to connect to the same WG listener as beacons: https://sliver.sh/docs?name=Port%20Forwarding
-
If the operator uses official wireguard clients that integrates with the OS's netstack (I'm using the Windows client) then their services are accessible on the wireguard interface's IP address (for example 100.64.0.3) when the services listen on 0.0.0.0 (SSH, RDP, SMB, etc) image
-
The beacon's wireguard private key can be recovered through a process dump or other forensic techniques.
-
When a private key is recovered, an attacker can connect to 100.64.0.1:1337 (key exchange listener) to generate new wireguard clients without the operators' knowledge, in that way achieve persistence inside the wireguard network.
PoC
Easy way:
- Create 2 operators wireguard config.
- Connect them both to the wireguard listener.
- From one machine, ping/scan/connect to the other's services like RDP (3389), SSH (22), etc.
Slightly complicated way:
-
From the operator's machine, connect to the wireguard listener.
-
On the attacker's machine, run a beacon.
-
Dump the process
-
Find the private key, public key, endpoint, etc in the dump file: image image image image
-
Construct a valid Wireguard config based on the strings found. On the attacker's machine, connect to the Wireguard listener.
-
Ping/scan/connect to the other's services like RDP (3389), SSH (22), etc.
Impact
The operator's machine is impacted, if their services contain a vulnerability, an attacker can exploit it and gain RCE. If not then it could be used to gather information (Hostname, SSH signature, etc).
Suggestion
- Filter traffic between clients with a default-deny policy.
- Differentiate between operators and beacons' wireguard config/client
- Only allow specific one-way traffic when the operator request to open a Wireguard port forward.
Vulnerable versions
All versions containing wireguard functionality.
Go Vulnerability Database
Silver has unrestricted traffic between Wireguard clients in github.com/bishopfox/sliver
NVD (es)
Sliver es un framework de comando y control que utiliza un netstack Wireguard personalizado. En las versiones 1.5.43 y anteriores, y en la versión de desarrollo 1.6.0-dev, el netstack no limita el tráfico entre clientes Wireguard. Esto permite a los clientes comunicarse entre sí sin restricciones, lo que podría permitir que pares de claves filtrados o recuperados se utilicen para atacar a los operadores o permitir que los reenvíos de puertos sean accesibles desde otros implantes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27093 changed 2025-10-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q8j9-34qf-7vq7 changed 2025-11-05 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4079 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-27093 changed 2026-10-08 | Public domain |