OpenBSD /usr/bin/mail in non-interactive mode could allow local root privileges

openbsd-mail-root-privileges (8818) The risk level is classified as HighHigh Risk


A vulnerability in the /usr/bin/mail program in OpenBSD could allow a local attacker to gain root privileges on the system. The /usr/bin/mail program fails to properly filter out tilde (~) escape characters from the body of an email message when running in non-interactive mode. An attacker could exploit this vulnerability using one of the system's default cron jobs to gain root privileges on the system.


Gain Privileges


Upgrade to the latest version of OpenBSD 3.0-current (dated after April 8, 2002), available from the OpenBSD Web site. See References.

— OR —

Apply the patch for this vulnerability, as listed in OpenBSD Security Advisory, April 11, 2002. See References.


Platforms Affected:

  • OpenBSD OpenBSD 3.0 and prior


Apr 11, 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