RADIUS (Remote Authentication Dial-In User Service)
What is RADIUS (Remote Authentication Dial-In User Service)?
RADIUS (Remote Authentication Dial-In User Service, RFC 2865) lets network devices such as Wi-Fi access points, VPN gateways and switches hand user logins to a central server for authentication, authorization and accounting. AdminKit explains how RADIUS works over UDP ports 1812 and 1813, and why the Blast-RADIUS attack changed its recommended configuration.
By AdminKit team, Netbase JSC · Updated
RADIUS is the protocol behind most “log in with your company account” prompts on network equipment. A network access server (NAS) such as a Wi-Fi access point, VPN concentrator or switch collects the user’s credentials and asks a central RADIUS server whether to let them in. RFC 2865, published in June 2000, specifies authentication and authorization; RFC 2866 adds accounting.
How does RADIUS work?
The NAS is the RADIUS client. It sends an Access-Request over UDP; the server checks the credentials and answers Access-Accept, Access-Reject or Access-Challenge, often with attributes that tell the NAS how to treat the session. RFC 3580 shows one common use with IEEE 802.1X port authentication: the server can place a user in a specific VLAN with tunnel attributes such as these:
Tunnel-Type=VLAN (13)
Tunnel-Medium-Type=802
Tunnel-Private-Group-ID=<VLAN ID>
The ports are fixed by the RFCs:
UDP 1812 authentication (RFC 2865; early use: 1645)
UDP 1813 accounting (RFC 2866; early use: 1646)
Widely used servers include the open-source FreeRADIUS, which its project describes as the most widely used RADIUS server in the world and a key technology behind the eduroam Wi-Fi roaming service, and Microsoft’s Network Policy Server, which can act as a RADIUS server for wireless, authenticating switch, dial-up and VPN connections, or as a RADIUS proxy. A RADIUS server often checks passwords against a directory such as LDAP or Active Directory.
Why is RADIUS security under review?
Client and server authenticate each other with a shared secret that is never sent over the network, and RFC 2865 hides user passwords with an MD5-based construction. The rest of the packet is not encrypted. The researchers behind Blast-RADIUS (CVE-2024-3596) showed in 2024 that the MD5-based response authenticator can be broken: a man-in-the-middle between client and server can combine a protocol flaw with an MD5 chosen-prefix collision to turn a failed login into an Access-Accept, without learning any password or the shared secret. It affects all RADIUS implementations using non-EAP authentication methods over UDP.
Their short-term mitigation is for clients and servers to always send and require the Message-Authenticator attribute on all requests and responses, which patched implementations support. The long-term fix is to carry RADIUS inside an encrypted, authenticated channel such as TLS or DTLS. Either way, keep RADIUS traffic on a management network, as with SNMPv3 monitoring traffic.
RADIUS runs over UDP, and AdminKit’s port check probes a fixed list of nine TCP ports on your own public IP and tests no UDP port, so it cannot show whether 1812 or 1813 is reachable.
RADIUS is part of AdminKit’s machine protocols cluster; the full AdminKit glossary lists other related terms.
Frequently asked questions
Which ports does RADIUS use?
RFC 2865 assigns UDP port 1812 to RADIUS authentication and RFC 2866 assigns UDP port 1813 to accounting. Early deployments used UDP 1645 and 1646, and some equipment still defaults to them.
Is RADIUS traffic encrypted?
Mostly not. Client and server share a secret that is never sent, and RFC 2865 hides the user password with an MD5-based construction, but other attributes travel in the clear. The Blast-RADIUS researchers recommend running RADIUS inside an encrypted, authenticated channel such as TLS.
What is Blast-RADIUS?
Blast-RADIUS (CVE-2024-3596) is a protocol vulnerability in which a man-in-the-middle between a RADIUS client and server forges an accept message for a failed login, using an MD5 chosen-prefix collision. It affects RADIUS over UDP with non-EAP authentication methods.
How do I mitigate Blast-RADIUS?
Patch clients and servers, and make both always send and require the Message-Authenticator attribute on every request and response, as the researchers recommend. The long-term fix they give is RADIUS over TLS or DTLS.