{"id":"CVE-2026-25791","aliases":["CVE-2026-25791","GHSA-wxrw-gvg8-fqjp","GO-2026-4466"],"related":[],"kind":"vulnerability","state":"published","title":"Sliver has a DNS C2 OTP Bypass Allows Unauthenticated Session Flooding and Denial of Service","summary":"Sliver is a command and control framework that uses a custom Wireguard netstack. Prior to 1.7.0, the DNS C2 listener accepts unauthenticated TOTP bootstrap messages and allocates server-side DNS sessions without validating OTP values, even when EnforceOTP is enabled. Because sessions are stored without a cleanup/expiry path in this flow, an unauthenticated remote actor can repeatedly create sessions and drive memory exhaustion. This vulnerability is fixed in 1.7.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sliver is a command and control framework that uses a custom Wireguard netstack. Prior to 1.7.0, the DNS C2 listener accepts unauthenticated TOTP bootstrap messages and allocates server-side DNS sessions without validating OTP values, even when EnforceOTP is enabled. Because sessions are stored without a cleanup/expiry path in this flow, an unauthenticated remote actor can repeatedly create sessions and drive memory exhaustion. This vulnerability is fixed in 1.7.0.","source":"cvelist"},{"lang":"en","text":"## Summary\nThe DNS C2 listener accepts unauthenticated `TOTP` bootstrap messages and allocates server-side DNS sessions without validating OTP values, even when `EnforceOTP` is enabled. Because sessions are stored without a cleanup/expiry path in this flow, an unauthenticated remote actor can repeatedly create sessions and drive memory exhaustion.\n\n## Vulnerable Component\n- `server/c2/dns.go:84-90` (`EnforceOTP` stored but not enforced in bootstrap)\n- `server/c2/dns.go:378-390` (`TOTP` requests routed directly to bootstrap)\n- `server/c2/dns.go:490-521` (`handleHello` allocates session without OTP validation)\n- `server/c2/dns.go:495` (`sessions.Store` with no lifecycle control in this path)\n- `client/command/jobs/dns.go:46-52` (operator-facing `EnforceOTP` control implies auth gate)\n- `implant/sliver/transports/dnsclient/dnsclient.go:896-900` (`otpMsg` sends `TOTP` with `ID=0`)\n- `protobuf/dnspb/dns.proto:22` (documents TOTP in `ID` field)\n\n## Attack Vector\n- Network-accessible DNS listener\n- No authentication required\n- Low-complexity repeated DNS query loop\n- Trigger path: `DNSMessageType_TOTP` bootstrap handling\n\n## Proof of Concept\n### Preconditions\n- DNS listener is reachable\n- DNS C2 job is active\n\n### Reproduction Steps\n1. Send repeated DNS queries with a minimal protobuf message of type `TOTP`.\n2. Observe repeated session allocation/issuance behavior.\n3. Continue requests to increase active in-memory session state.\n\n### Example\n```bash\nwhile true; do\n  dig +short @<DNS_C2_IP> baa8.<parent-domain> A >/dev/null\ndone\n```\n\n`baa8` is a base32 payload for a minimal TOTP-type protobuf message.\n\n### Observable Indicators\n- Repeated bootstrap/session-allocation log entries from `handleHello`\n- Rising memory usage in the Sliver server process\n- Service slowdown or instability under sustained request volume\n\n## Impact\n- Unauthenticated remote denial of service (availability)\n- Resource exhaustion through unbounded session growth in DNS bootstrap path\n- Estimated CVSS v3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` (**7.5 High**)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Sliver has DNS C2 OTP Bypass that Allows Unauthenticated Session Flooding and Denial of Service in github.com/bishopfox/sliver.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/bishopfox/sliver before v1.6.12.","format":"markdown","source":"go"},{"lang":"es","text":"Sliver es un framework de comando y control que utiliza un netstack Wireguard personalizado. Antes de la versión 1.7.0, el oyente DNS C2 acepta mensajes de arranque TOTP no autenticados y asigna sesiones DNS del lado del servidor sin validar los valores OTP, incluso cuando EnforceOTP está habilitado. Dado que las sesiones se almacenan sin una ruta de limpieza/caducidad en este flujo, un actor remoto no autenticado puede crear sesiones repetidamente y provocar el agotamiento de la memoria. Esta vulnerabilidad se corrige en la versión 1.7.0.","source":"nvd"}],"published":"2026-02-06T22:52:00.000Z","modified":"2026-06-17T10:25:15.053Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-306","CWE-400"],"affected":[{"ranges":[{"version":"< 1.7.0","status":"affected"}],"vendor":"BishopFox","product":"sliver","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.6.12"}],"ecosystem":"Go","package":"github.com/bishopfox/sliver","purl":"pkg:golang/github.com/bishopfox/sliver","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/bishopfox/sliver","purl":"pkg:golang/github.com/bishopfox/sliver","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.0"}],"vendor":"bishopfox","product":"sliver","cpe":"cpe:2.3:a:bishopfox:sliver:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/BishopFox/sliver/security/advisories/GHSA-wxrw-gvg8-fqjp","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/BishopFox/sliver/releases/tag/v1.7.0","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25791","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/BishopFox/sliver/commit/2b65089b27c553e79e69f1067cad1339e4f3d937","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/BishopFox/sliver","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-10T15:39:42.592Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25791","url":"https://www.cve.org/CVERecord?id=CVE-2026-25791","licence":"CVE Terms of Use","modified":"2026-02-10T15:59:20.819Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wxrw-gvg8-fqjp","url":"https://github.com/advisories/GHSA-wxrw-gvg8-fqjp","licence":"CC-BY-4.0","modified":"2026-02-19T20:56:50.368Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4466","url":"https://pkg.go.dev/vuln/GO-2026-4466","licence":"CC-BY-4.0","modified":"2026-02-19T20:41:18.445Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25791","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25791","licence":"Public domain","modified":"2026-06-17T10:25:15.053Z"}],"updatedAt":"2026-11-25T22:59:13.676Z","epss":{"score":0.00447,"percentile":0.40588,"date":"2026-12-01T12:00:22.000Z"}}