CVE-2002-0162

LogWatch < 2.5 - Arbitrary Code Execution via Symlink Attack on Temporary Directory

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2002-0162. PoCs published by spybreak.

AI-analyzed exploit summary This exploit targets a race condition in LogWatch 2.1.1 by predicting the process ID and creating a malicious directory in /tmp. It then symlinks a script to modify /etc/passwd, granting a root shell.

Description

LogWatch before 2.5 allows local users to execute arbitrary code via a symlink attack on the logwatch temporary directory.

Exploits (1)

exploitdb WORKING POC VERIFIED
by spybreak · bashlocallinux
https://www.exploit-db.com/exploits/21356

This exploit targets a race condition in LogWatch 2.1.1 by predicting the process ID and creating a malicious directory in /tmp. It then symlinks a script to modify /etc/passwd, granting a root shell.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Racy
Target: LogWatch 2.1.1
No auth needed
Prerequisites: Local access to the target system · LogWatch 2.1.1 installed and configured to run via cron
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry mailing-list x_refsource_vuln-dev
http://online.securityfocus.com/archive/82/264233
Mailing List mailing-list x_refsource_bugtraq
http://marc.info/?l=bugtraq&m=101724766216872
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/4374
Third Party Advisory vdb-entry x_refsource_xf
http://www.iss.net/security_center/static/8652.php

Scores

EPSS 0.0077
EPSS Percentile 50.9%

Details

Status published
Products (1)
logwatch/logwatch < 2.5
Published Mar 27, 2002
Tracked Since Feb 18, 2026