Debian DLA-114-1 : heirloom-mailx security update

High Nessus Plugin ID 82098

Synopsis

The remote Debian host is missing a security update.

Description

Two security vulnerabilities were discovered in Heirloom mailx, an implementation of the 'mail' command :

CVE-2004-2771

mailx interprets interprets shell meta-characters in certain email addresses.

CVE-2014-7844

An unexpected feature of mailx treats syntactically valid email addresses as shell commands to execute.

Shell command execution can be re-enabled using the 'expandaddr' option.

Note that this security update does not remove all mailx facilities for command execution, though. Scripts which send mail to addresses obtained from an untrusted source (such as a web form) should use the '--' separator before the email addresses (which was fixed to work properly in this update), or they should be changed to invoke 'mail
-t' or 'sendmail -i -t' instead, passing the recipient addresses as part of the mail header.

For the oldstable distribution (squeeze), these problems have been fixed in version 12.4-2+deb6u1.

We recommend that you upgrade your heirloom-mailx packages.

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Upgrade the affected heirloom-mailx package.

See Also

https://lists.debian.org/debian-lts-announce/2014/12/msg00017.html

https://packages.debian.org/source/squeeze-lts/heirloom-mailx

Plugin Details

Severity: High

ID: 82098

File Name: debian_DLA-114.nasl

Version: 1.7

Type: local

Agent: unix

Published: 2015/03/26

Updated: 2020/03/12

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:heirloom-mailx, cpe:/o:debian:debian_linux:6.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2014/12/17

Vulnerability Publication Date: 2014/12/24

Reference Information

CVE: CVE-2004-2771, CVE-2014-7844

BID: 71701, 71704