search menu icon-carat-right cmu-wordmark

CERT Coordination Center

diffutils sdiff creates temporary files insecurely

Vulnerability Note VU#579928

Original Release Date: 2001-10-09 | Last Revised: 2001-11-08

Overview

diffutils, a set of utilities distributed with many versions of linux, contains a utility called sdiff, which creates temporary files of predictable names in an insecure fashion. Using a symbolic link attack, an intruder can cause overwrite of any file writable by the user executing sdiff.

Description

sdiff creates temporary files as part of the file comparison process. Under some conditions, sdiff will create files in /tmp with predictable names, and furthermore does not check for prior existence or ownership of these files.

Impact

By creating a series of symbolic links, an intruder can cause sdiff to overwrite any file writable by the user executing sdiff, which may corrupt data or deny service.

Solution

Apply vendor patches; see the Systems Affected section below.

Vendor Information

579928
 

CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This vulnerability was first described by Greg Kroah-Hartman of Immunix.

This document was last modified by Tim Shimeall.

Other Information

CVE IDs: CVE-2001-0117
Severity Metric: 4.50
Date Public: 2001-01-10
Date First Published: 2001-10-09
Date Last Updated: 2001-11-08 18:26 UTC
Document Revision: 15

Sponsored by CISA.