DHCP option 121
termKept in this browser · My desk
The DHCPv4 option, defined in RFC 3442 of December 2002, with which a server installs classless static routes on a client, each a destination network and the router that reaches it.
It lets a network give hosts specific routes as well as a default gateway, and it takes precedence: a client that receives option 121 must ignore the router option. Because its routes can be more specific than any default route, a rogue DHCP server can use it to pull traffic away, including traffic a VPN (virtual private network) client meant to send into its tunnel. Leviathan Security published that consequence in May 2024 as TunnelVision (CVE-2024-3661, CVSS 7.6); Android, which does not implement the option, was unaffected.
What it is. RFC 3442, by Ted Lemon, Stuart Cheshire and Bernie Volz, defines option 121, 'Classless Static Route Option for DHCPv4', with a minimum length of 5 bytes. It replaced option 33 of RFC 2132 (1997), which carried pairs of destination and router addresses without masks and declared the default route 'an illegal destination for a static route'; Leviathan's write-up summarizes that RFC 3442 obsoleted option 33 because classful routes fell out of favour, adding that option 33 'still should be supported, depending on who you ask'.
How it works. Each route is a destination descriptor followed by four bytes of router. The descriptor is one byte of mask width and then only the significant bytes of the network number: widths 1 to 8 need one byte, 9 to 16 two, 17 to 24 three, 25 to 32 four. The RFC's own table gives 10.0.0.0/8 as 8.10, 10.27.129.0/24 as 24.10.27.129, 10.229.0.128/25 as 25.10.229.0.128, and the default route as a single 0. A client that supports the option must request it in its parameter request list before the router option, and 'If the DHCP server returns both a Classless Static Routes option and a Router option, the DHCP client MUST ignore the Router option'. Worked by hand for a router at 10.20.30.66, the two halves of the IPv4 space encode as 79 0C 01 00 0A 14 1E 42 01 80 0A 14 1E 42: code 121, length 12, then 1.0 and 1.128 each followed by the router. Two /1 routes cover everything a /0 covers and win by longest-prefix matching.
Security history. RFC 3442 states the risk itself: the option 'can be used to misdirect network traffic by providing incorrect IP addresses for routers', for denial of service or 'to set up a man-in-the-middle attack', and 'This is not a new problem', since the router and static route options of RFC 2132 share it. On 6 May 2024 Lizzie Moratti and Dani Cronce of Leviathan Security Group published TunnelVision: a DHCP server on the local network pushes routes more specific than the 0.0.0.0/0 or the two /1 routes a VPN installs, and because 'the network interface device for the route it installs cannot be specified by the DHCP server', the routes send traffic out of the physical interface instead of the tunnel. They found every operating system whose DHCP client implements option 121 affected (Windows, Linux, iOS, macOS) and Android, which does not, unaffected, and noted research on the same effect going back to 2015. The CVE record, CVE-2024-3661, scores it 7.6 under CVSS 3.1 with the weaknesses 'Missing Authentication for Critical Function' and 'Trust Boundary Violation', and lists advisories from Cisco, Palo Alto Networks, Fortinet, F5, Citrix and WatchGuard.
In practice and what goes wrong. Legitimate uses are real (sending a management network or a second site through a specific router), which is why simply ignoring the option breaks networks, an objection Leviathan records. Their mitigations: network namespaces on Linux, which separate the tunnel's routing table from the local network's; firewall rules dropping traffic to the physical interface, which work but leave a side channel through which the attacker can infer destinations; and, on networks the organization controls, DHCP snooping and ARP protections. In a capture the sign is an offer carrying option 121 on a network whose scopes do not use it, or routes in a VPN client's table it did not install.
Local routes and client duties. The RFC also covers links that carry several IP subnets: for each subnet on the link other than the client's own, the server 'MAY be configured to specify a router IP address of 0.0.0.0', telling the client the destination is reachable directly; its example is a link with 10.0.0/24, 192.168.0/24 and 10.0.21/24, where a client at 10.0.21.17 receives the other two with router 0.0.0.0. Clients that support option 121 'MAY also request the Static Routes option' for older servers, but the classless option must come first in the parameter request list, and when both arrive the static routes option is ignored as the router option is. Each of those rules is also a lever for whoever answers the client's broadcast.
Neighbours. The router option (3) and option 33 it supersedes, rogue DHCP servers, DHCP snooping, longest-prefix match, and the TunnelCrack LocalNet attack of 2023, which reaches a similar leak through misleading local subnets.
Also known as: classless static route option, option 121, rfc 3442, tunnelvision, cve-2024-3661, opção 121
Sources
- Ted Lemon, Stuart Cheshire and Bernie Volz, RFC 3442, The Classless Static Route Option for DHCPv4, December 2002: format, encoding table, the client MUST ignore the Router option when option 121 is present, security considerations (read 2026-11-23)
- Steve Alexander and Ralph Droms, RFC 2132, DHCP Options and BOOTP Vendor Extensions, March 1997: options 1, 3, 6, 15, 51, 53, 54; option 33 static routes, where the default route is an illegal destination (read 2026-11-23)
- Lizzie Moratti and Dani Cronce, Leviathan Security Group, TunnelVision (CVE-2024-3661), 6 May 2024: option 121 routes more specific than a VPN's; no interface can be named; affected Windows, Linux, iOS, macOS; Android unaffected; option 33 history; namespaces and firewall rules; prior research since 2015 (read 2026-11-23)
- CVE Program, CVE-2024-3661, JSON record, published 6 May 2024: DHCP routing options can manipulate interface-based VPN traffic; CVSS 3.1 7.6; CWE-306, CWE-501; vendor advisories referenced (read 2026-11-23)
- Ralph Droms, RFC 2131, Dynamic Host Configuration Protocol, IETF, March 1997: offer selection implementation-dependent (4.4.1); non-selected servers treat the REQUEST as a decline (3.1); 'DHCP in its current form is quite insecure', unauthorized servers, spoof routers and nameservers (7) (read 2026-11-23)