CVE-2002-1395 in Internet Messageinfo

Summary

by MITRE

Internet Message (IM) 141-18 and earlier uses predictable file and directory names, which allows local users to (1) obtain unauthorized directory permissions via a temporary directory used by impwagent, and (2) overwrite and create arbitrary files via immknmz.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 09/06/2025

The vulnerability described in CVE-2002-1395 affects Internet Message 141-18 and earlier versions, presenting significant security risks through predictable naming patterns in temporary files and directories. This issue stems from the improper handling of file and directory creation processes within the messaging system, creating opportunities for local privilege escalation and arbitrary file manipulation. The vulnerability specifically targets the impwagent component responsible for temporary directory operations and the immknmz utility that enables file creation and modification functions.

The technical flaw manifests through predictable naming conventions that allow attackers to anticipate the exact paths and names of temporary files and directories created by the system. When impwagent generates temporary directories, it uses hardcoded or easily predictable naming schemes that do not incorporate sufficient entropy or randomization. This predictability enables local users to pre-create directories with the same names, effectively hijacking the intended directory permissions and gaining unauthorized access to sensitive resources. The vulnerability also affects the immknmz utility which allows arbitrary file creation and overwriting through predictable file paths, enabling attackers to place malicious content in critical system locations.

The operational impact of this vulnerability extends beyond simple privilege escalation to encompass potential system compromise and data integrity violations. Local users who exploit this vulnerability can manipulate the temporary directory permissions to gain elevated access rights, potentially allowing them to read or modify files that should be restricted. The ability to overwrite arbitrary files through immknmz creates additional attack vectors where malicious code could be injected into system components, potentially leading to persistent backdoors or complete system compromise. This vulnerability particularly affects systems where multiple users share the same environment and where proper file access controls are not adequately enforced.

Mitigation strategies for CVE-2002-1395 should focus on implementing proper randomization and entropy in temporary file and directory creation processes. System administrators should ensure that all temporary file operations use cryptographically secure randomization techniques to prevent predictable naming patterns. The impwagent component should be updated to generate temporary directories with unique, non-predictable names incorporating time-based or system-specific entropy. Additionally, the immknmz utility requires modifications to validate file paths and implement proper access controls to prevent unauthorized file creation or modification. Organizations should also consider implementing mandatory access controls and regular security audits to detect and prevent exploitation attempts. This vulnerability aligns with CWE-377, which addresses insecure temporary file creation, and maps to ATT&CK technique T1059 for execution through system commands, highlighting the need for comprehensive system hardening and privilege management controls.

Disclosure

01/17/2003

Moderation

accepted

Entry

VDB-20088

CPE

ready

EPSS

0.00371

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!