search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Multiple implementations of the RADIUS protocol contain a digest calculation buffer overflow

Vulnerability Note VU#589523

Original Release Date: 2002-03-04 | Last Revised: 2002-04-16

Overview

Multiple implementations of the RADIUS protocol contain a buffer overflow in the function that calculates message digests.

Description

During the message digest calculation, a string containing the shared secret is concatenated with a packet received without checking the size of the target buffer. This makes it possible to overflow the buffer with shared secret data. This can lead to denial of service against the server. If the shared secret is known by the attacker, then it may be possible to use this information to execute arbitrary code with the privileges of the victim RADIUS server or client, usually root. It should be noted that gaining knowledge of the shared secret is not a trivial task.

Certain implementations of RADIUS vulnerable to VU#589523 may allow the execution of code if multiple packets are processed in the same thread, and the last 1 or 2 bytes of the shared secret is with in a certain range. In this case, specific knowledge of the shared secret is not required.

Impact

Without knowledge of the shared secret, an attacker can cause a denial of service against the server, or the client via the server response. With knowledge of the shared secret, an attacker may be able to execute arbitrary code. In certain implementations, specific knowledge of the shared secret is not required to execute arbitrary code if the last 1 or 2 bytes of the shared secret are with in a certain range.

Solution

Apply a patch or upgrade to the version specified by your vendor.

Implementing a firewall to filter packets from outside of your network perimeter from being sent to the RADIUS server may help reduce the risk of attack. Note that this is not sufficient to prevent the vulnerability from being exploited by users who are within your network perimeter.

Vendor Information

589523
 

View all 33 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Our thanks to Joshua Hill and 3APA3A <3APA3A@SECURITY.NNOV.RU> for their report and analysis of this vulnerability.

This document was written by Jason Rafail and is based on information provided by 3APA3A.

Other Information

CVE IDs: CVE-2001-1376
CERT Advisory: CA-2002-06
Severity Metric: 5.74
Date Public: 2001-11-12
Date First Published: 2002-03-04
Date Last Updated: 2002-04-16 18:56 UTC
Document Revision: 21

Sponsored by CISA.