Dropbear SSH server fails to enforce permitopen and permitlisten key restrictions when handling Unix socket forwarding (direct-streamlocal and streamlocal-forward channels). While TCP forwarding properly restricts destinations to those listed in authorized_keys, Unix socket paths bypass these per-destination checks and only enforce the coarse no-port-forwarding flag. This allows keys with restrictive permitopen/permitlisten directives to forward connections to arbitrary Unix sockets, including docker.sock, escalating privileges beyond the intended restrictions. The vulnerability exists because svr_pubkey_allows_local_tcpfwd() and svr_pubkey_allows_remote_tcpfwd() are never called from the Unix socket forwarding code paths (src/svr-streamfwd.c), only from TCP forwarding code (src/svr-tcpfwd.c).
| Vendor | Product | Versions |
|---|---|---|
| dropbear | dropbear ssh | HEAD 99baf182, up to and including commit 99baf1828c13e88de048e641d03694bfe8923251 (2026-11-11) |
Loading…