search menu icon-carat-right cmu-wordmark

CERT Coordination Center

sudoedit can expose protected file contents

Vulnerability Note VU#424358

Original Release Date: 2004-10-19 | Last Revised: 2004-10-27

Overview

Sudo's -e option (sudoedit) improperly handles temporary files, allowing an attacker to read files that would otherwise be inaccessible.

Description

Sudo is a utility that allows specific users to run certain commands as root. Beginning with version 1.6.8, sudo provides safe editing functionality via sudoedit. Sudoedit allows specific users to edit certain files as root, as specified by the sudoers configuration file.

When sudoedit launches the specified editor, it reopens a temporary copy of the file to be edited with root privileges. If this temporary file is changed to be a symlink to a file with restricted access, the editor will display the contents of the file with restricted access.

Impact

An authenticated user who has the permissions to run sudoedit may be able to read protected files.

Solution

Apply a patch from your vendor
For vendor-specific information regarding vulnerable status and patch availability, please see the vendor section of this document.

Upgrade your version of sudo

Upgrade your system as specified by your vendor. If you need to upgrade sudo manually, get sudo 1.6.8p1. Note that only sudo 1.6.8 contains this vulnerability. Previous versions are not affected.


Disable sudoedit

This vulnerability is only exploitable if a user has explicitly been granted sudoedit permissions. If the sudoers configuration file does not grant permission to run sudoedit, then the vulnerability cannot be exploited.

Vendor Information

424358
 

View all 37 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This vulnerability was reported by Reznic Valery.

This document was written by Will Dormann and is based on the information in the Sudo Alert .

Other Information

CVE IDs: None
Severity Metric: 5.25
Date Public: 2004-09-18
Date First Published: 2004-10-19
Date Last Updated: 2004-10-27 21:29 UTC
Document Revision: 12

Sponsored by CISA.