search menu icon-carat-right cmu-wordmark

CERT Coordination Center

MIT Kerberos (krb5) krshd and v4rcp do not properly validate setuid() or seteuid() calls

Vulnerability Note VU#580124

Original Release Date: 2006-08-08 | Last Revised: 2006-08-24

Overview

Privilege escalation vulnerabilities in MIT krb5 krshd and v4rcp may allow an authenticated attacker to execute arbitrary code.

Description

The MIT krb 5 krshd and v4rcp programs contain multiple privilege escalation vulnerabilities. MIT krb5 Security Advisory 2006-001 states that the vulnerabilities "...result when the OS implementations of setuid() or seteuid() can fail due to resource exhaustion when changing to an unprivileged user ID."

From MIT krb5 Security Advisory 2006-001:

The following vulnerabilities may result from unchecked calls to setuid(), and are believed to only exist on Linux and AIX:

    • Unchecked calls to setuid() in krshd may allow a local privilege escalation leading to execution of programs as root.
    • Unchecked calls to setuid() in the v4rcp may allow a local privilege escalation leading to reading, writing, or creating files as root. v4rcp is the remote end of a krb4-authenticated rcp operation, but may be executed directly by an attacker, as it is a setuid program.

Impact

An authenticated, remote attacker may be able to execute arbitrary code with root privileges.

Solution

Apply a patch or upgradeFrom MIT krb5 Security Advisory 2006-001: "The upcoming krb5-1.5.1 and krb5-1.4.4 releases will include fixes for these vulnerabilities." MIT has also released patches for krb 5-1.5 and krb5-1.4.3. See the Systems Affected section of this document for information about specific vendors.


Disable vulnerable programs

From MIT krb5 Security Advisory 2006-001: "Disable krshd and v4rcp, and remove the setuid bit from the ksu binary and the ftpd binary."

Vendor Information

580124
 

View all 45 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

These vulnerabilities were reported by the MIT Kerberos Development Team.

This document was written by Ryan Giobbi and Art Manion.

Other Information

CVE IDs: CVE-2006-3083
Severity Metric: 6.91
Date Public: 2006-07-26
Date First Published: 2006-08-08
Date Last Updated: 2006-08-24 20:07 UTC
Document Revision: 42

Sponsored by CISA.