CVE-2007-4440

MercuryS SMTP <4.51 - Buffer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 4 public exploits for CVE-2007-4440. PoCs published by Metasploit, ZhenHan.Liu, eliteboy, including Metasploit module exploits/windows/smtp/mercury_cram_md5.

AI-analyzed exploit summary This exploit targets a stack buffer overflow in Mercury Mail Transport System 4.51 via a maliciously crafted AUTH CRAM-MD5 command. It sends a base64-encoded payload to trigger arbitrary code execution.

Description

Stack-based buffer overflow in the MercuryS SMTP server in Mercury Mail Transport System, possibly 4.51 and earlier, allows remote attackers to execute arbitrary code via a long AUTH CRAM-MD5 string. NOTE: this might overlap CVE-2006-5961.

Exploits (4)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotewindows
https://www.exploit-db.com/exploits/16821

This exploit targets a stack buffer overflow in Mercury Mail Transport System 4.51 via a maliciously crafted AUTH CRAM-MD5 command. It sends a base64-encoded payload to trigger arbitrary code execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Mercury Mail Transport System 4.51
No auth needed
Prerequisites: Network access to the SMTP service (port 25) · Target running Mercury Mail Transport System 4.51
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by ZhenHan.Liu · c++remotewindows
https://www.exploit-db.com/exploits/4301

This exploit targets a stack overflow vulnerability in Mercury/32 4.51 SMTPD during CRAM-MD5 authentication. It sends a maliciously crafted base64-encoded payload to trigger a buffer overflow, leading to remote code execution and binding a command shell on port 1154.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Mercury/32 4.51 SMTPD
No auth needed
Prerequisites: Network access to the SMTP service on port 25 · Target must be running Mercury/32 4.51 SMTPD
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by eliteboy · perldoswindows
https://www.exploit-db.com/exploits/4294

This exploit targets a stack-based buffer overflow in Mercury Mail Transport System's SMTP server by sending an excessively long AUTH CRAM-MD5 string. The PoC demonstrates the vulnerability but does not include a payload for remote code execution.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: Mercury Mail Transport System (latest version as of 2007)
No auth needed
Prerequisites: Network access to the SMTP server (port 25)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC GREAT
by MC · rubypocwin
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smtp/mercury_cram_md5.rb

This Metasploit module exploits a stack buffer overflow in Mercury Mail Transport System 4.51 via a crafted AUTH CRAM-MD5 command. It sends a malicious payload to achieve remote code execution on the target system.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Mercury Mail Transport System 4.51
No auth needed
Prerequisites: Network access to the SMTP service (port 25) · Target running Mercury Mail Transport System 4.51
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26519
Third Party Advisory mailing-list x_refsource_fulldisc
http://archives.neohapsis.com/archives/fulldisclosure/2007-08/0341.html
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2918
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4294
Various Sources x_refsource_confirm
http://www.pmail.com/m32_451.htm
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25357
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36117
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018587
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36299

Scores

EPSS 0.8391
EPSS Percentile 99.3%

Details

CWE
CWE-119
Status published
Products (1)
pmail/mercury_mail_transport_system < 4.51
Published Aug 21, 2007
Tracked Since Feb 18, 2026