USN-2455-1: bsd-mailx vulnerability

Publication date

7 January 2015

Overview

bsd-mailx could be made to run programs if it parsed a specially crafted email address.


Packages

Details

It was discovered that bsd-mailx contained a feature that allowed
syntactically valid email addresses to be treated as shell commands. A
remote attacker could possibly use this issue with a valid email address to
execute arbitrary commands.

This functionality has now been disabled by default, and can be re-enabled
with the "expandaddr" configuration option. This update alone does not
remove all possibilities of command execution. In environments where
scripts use mailx to process arbitrary email addresses, it is recommended
to modify them to use a "--" separator before the address to properly
handle those that begin with "-". In addition, specifying sendmail options
after the "--" separator is no longer supported, existing scripts may need
to be modified to use the "-a" option instead.

It was discovered that bsd-mailx contained a feature that allowed
syntactically valid email addresses to be treated as shell commands. A
remote attacker could possibly use this issue with a valid email address to
execute arbitrary commands.

This functionality has now been disabled by default, and can be re-enabled
with the "expandaddr" configuration option. This update alone does not
remove all possibilities of command execution. In environments where
scripts use mailx to process arbitrary email addresses, it is recommended
to modify them to use a "--" separator before the address to properly
handle those that begin with "-". In addition, specifying sendmail options
after the "--" separator is no longer supported, existing scripts may need
to be modified to use the "-a" option instead.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
14.10 utopic bsd-mailx –  8.1.2-0.20131005cvs-1ubuntu0.14.10.1
14.04 trusty bsd-mailx –  8.1.2-0.20131005cvs-1ubuntu0.14.04.1
12.04 precise bsd-mailx –  8.1.2-0.20111106cvs-1ubuntu0.1
10.04 lucid bsd-mailx –  8.1.2-0.20090911cvs-2ubuntu1.1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›