IM impwagent creates an insecure /tmp directory

im-impwagent-insecure-directory (10766) The risk level is classified as MediumMedium Risk


The impwagent program in the IM package creates a temporary directory in /tmp with insecure permissions. This could allow a local attacker to gain control of this directory and create, delete, or modify sensitive files within the directory.


File Manipulation


For Debian GNU/Linux:
Upgrade to the latest IM package, as listed below. Refer to DSA-202-2 for more information. See References.

Debian 2.2 (potato): 133-2.3 or later
Debian 3.0 (woody): 141-18.2 or later

For Red Hat Linux:
Upgrade to the latest im package, as listed below. Refer to RHSA-2003:039-09 for more information. See References.

Red Hat 7.0, 7.1 for iSeries and pSeries: 143-0.7x.560 or later
Red Hat 7.2: 143-1 or later
Red Hat 7.3 (mew): 2.2-5.7x or later
Red Hat 8.0 (mew): 2.2-6 or later

For other distributions:
Contact your vendor for upgrade or patch information.


  • IM Web site: IM (Internet Message) Official Site.
  • BID-6307: Internet Message Insecure Temporary File Creation Vulnerability
  • CVE-2002-1395: 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.
  • DSA-202: im -- insecure temporary files
  • RHSA-2003-038: im security update
  • RHSA-2003-039: Updated im packages fix insecure handling of temporary files

Platforms Affected:

  • Debian Debian Linux 2.2
  • Debian Debian Linux 2.3
  • Debian Debian Linux 3.0
  • IM Developing Team IM
  • RedHat Enterprise Linux 2.1 WS
  • RedHat Enterprise Linux 2.1 AS
  • RedHat Enterprise Linux 2.1 ES
  • RedHat Linux 7
  • RedHat Linux 7.1
  • RedHat Linux 7.1 for iSeries
  • RedHat Linux 7.1 for pSeries
  • RedHat Linux 7.1 for zSeries
  • RedHat Linux 7.2
  • RedHat Linux 7.3
  • RedHat Linux 8.0
  • RedHat Linux Advanced Workstation 2.1 Itanium


Dec 03, 2002

The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page