Advisory

USN-2455-1

Also known as: CVE-2014-7844

Summary

bsd-mailx vulnerability

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.

Severity

Not rated by the source.

Dates

Published
2015-01-07 19:26 UTC
Modified
2026-02-10 04:40 UTC

Affected packages and fixes

bsd-mailx

Debian packages (deb) · Ubuntu 14.04

Affected

  • introduced 0, fixed 8.1.2-0.20131005cvs-1ubuntu0.14.04.1 (ecosystem)

Fixed versions

8.1.2-0.20131005cvs-1ubuntu0.14.04.1

Fix

  • Fixed version 8.1.2-0.20131005cvs-1ubuntu0.14.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences