LogWatch Insecure Temporary Directory Creation Vulnerability

BID:4374

Info

LogWatch Insecure Temporary Directory Creation Vulnerability

Bugtraq ID: 4374
Class: Race Condition Error
CVE: CVE-2002-0162
Remote: No
Local: Yes
Published: Mar 27 2002 12:00AM
Updated: Jul 11 2009 11:56AM
Credit: This vulnerability discovery credited to Spybreak <[email protected]>.
Vulnerable: LogWatch LogWatch 2.5
LogWatch LogWatch 2.1.1
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.2 alpha
Not Vulnerable: LogWatch LogWatch 2.6
+ Redhat Advanced Workstation for the Itanium Processor 2.1 IA64
+ Redhat Advanced Workstation for the Itanium Processor 2.1 IA64
+ Redhat Advanced Workstation for the Itanium Processor 2.1
+ Redhat Advanced Workstation for the Itanium Processor 2.1
+ Redhat Enterprise Linux AS 2.1
+ Redhat Enterprise Linux AS 2.1
+ Redhat Enterprise Linux ES 2.1
+ Redhat Enterprise Linux ES 2.1
+ Redhat Enterprise Linux WS 2.1

Discussion

LogWatch Insecure Temporary Directory Creation Vulnerability

LogWatch is a freely available, open source script for monitoring log files. It may be used with the Linux and Unix Operating systems.

Upon execution, LogWatch creates a directory in /tmp. This directory uses the name logwatch.$pid, where $pid is the process id of the executing script. The LogWatch script does not check for an already existing directory or contents of the already existing directory. It is therefore possible for a local user to create a malicious logwatch.$pid directory using predicted process IDs, and place malicious files in the directory which will be executed.

Exploit / POC

LogWatch Insecure Temporary Directory Creation Vulnerability

Exploit contributed by Spybreak &lt;[email protected]&gt;.

Solution / Fix

LogWatch Insecure Temporary Directory Creation Vulnerability

Solution:
Fixes available:


LogWatch LogWatch 2.1.1

References

LogWatch Insecure Temporary Directory Creation Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report