Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

Linux Distributions Affected by Two “mailx” Vulnerabilities

Several Linux distributions are affected by a couple of security holes found in “mailx,” a utility that’s used for sending and receiving mail.

Several Linux distributions are affected by a couple of security holes found in “mailx,” a utility that’s used for sending and receiving mail.

The vulnerabilities, which have been rated “moderate,” are caused by the way mailx handles the parsing of email addresses. A local attacker can use a syntactically valid email address to cause mailx to execute arbitrary shell commands (CVE-2014-7844). An attacker can also execute commands by leveraging the fact that mailx interprets shell meta-characters in certain email addresses (CVE-2004-2771).

The security holes, found in both the BSD mailx and Heirloom mailx implementations, affect Red Hat Enterprise Linux, CentOS, Debian, Ubuntu, and possibly other distros. Patches have already been made available for many of the operating systems and users are advised to update their packages.

Debian has pointed out that CVE-2004-2771 is a historic vulnerability already fixed in Debian’s bsd-mailx package.

“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,” Debian noted in its security advisory.

Red Hat posted a similar note in its own advisory.

“Note: Applications using mailx to send email to addresses obtained from untrusted sources will still remain vulnerable to other attacks if they accept email addresses which start with ‘-‘ (so that they can be confused with mailx options). To counteract this issue, this update also introduces the ‘–‘ option, which will treat the remaining command line arguments as email addresses,” the advisory reads.

This isn’t the first time several Unix-like operating systems are affected by the same vulnerability. In October, a security hole that could have been leveraged to execute arbitrary commands (CVE-2014-8517) was identified in the tnftp FTP client.

Advertisement. Scroll to continue reading.

Earlier this month, researchers reported uncovering a buffer overflow vulnerability in a FreeBSD library that could lead to data corruption or arbitrary code execution (CVE-2014-8611).

Written By

Eduard Kovacs (@EduardKovacs) is a managing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

People on the Move

Mike Dube has joined cloud security company Aqua Security as CRO.

Cody Barrow has been appointed as CEO of threat intelligence company EclecticIQ.

Shay Mowlem has been named CMO of runtime and application security company Contrast Security.

More People On The Move

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Vulnerabilities

Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.

IoT Security

A vulnerability affecting Dahua cameras and video recorders can be exploited by threat actors to modify a device’s system time.