Vulnerability in bsd-mailx - security update

bsd-mailx Updated 02 Oct 2025

Summary

16/12/2014
N/A
Yes i
Unrated
Not published

DSA-3104-1: bsd-mailx - security update. Affects bsd-mailx versions < 8.1.2-0.20111106cvs-1+deb7u1. Fixed in 8.1.2-0.20111106cvs-1+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

bsd-mailx is an implementation of the mail command, providing functionality for sending and receiving emails from the command line. It is commonly used in Unix-like operating systems. However, an undocumented feature in bsd-mailx treats syntactically valid email addresses as shell commands to execute, posing a security risk.

Vulnerability Detail

The vulnerability in bsd-mailx allows an attacker to execute arbitrary shell commands by crafting a malicious email address. This can lead to unauthorized access, data leakage, and potential system compromise. The issue was addressed by removing the undocumented feature and the obsolete '-T' option. However, it is important to note that not all command execution facilities have been removed, and caution should be exercised when sending emails to addresses obtained from untrusted sources.

How To Fix

Minimum fixed version

8.1.2-0.20111106cvs-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bsd-mailx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

A workaround for scripts that send mail to addresses obtained from untrusted sources is to use the '--' separator before the email addresses. Alternatively, the scripts can be modified to invoke 'mail -t' or 'sendmail -i -t', passing the recipient addresses as part of the mail header.

Conclusion

The vulnerability in bsd-mailx has been addressed through a security update. Users are advised to upgrade their bsd-mailx packages to the fixed version to mitigate the risk of unauthorized command execution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for bsd-mailx →

Share this vulnerability

FAQ

bsd-mailx is an implementation of the mail command, providing functionality for sending and receiving emails from the command line in Unix-like operating systems.

The vulnerability allows an attacker to execute arbitrary shell commands by crafting a malicious email address. This can lead to unauthorized access, data leakage, and potential system compromise.

To fix this vulnerability, it is recommended to upgrade the bsd-mailx package to version 8.1.2-0.20111106cvs-1+deb7u1 or later using the package manager of the Debian 7 (wheezy) distribution.

A workaround for scripts that send mail to addresses obtained from untrusted sources is to use the '--' separator before the email addresses. Alternatively, the scripts can be modified to invoke 'mail -t' or 'sendmail -i -t', passing the recipient addresses as part of the mail header.

For further information and support on vulnerability remediation, you can contact info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for bsd-mailx.

How To Fix

Minimum fixed version

8.1.2-0.20111106cvs-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bsd-mailx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback