← Vulnerability feed

Vulnerability record · CVE-2004-0840 · published 3 November 2004

CVE-2004-0840: Microsoft exchange server improper input validation vulnerability

Microsoft · Exchange Server

The SMTP (Simple Mail Transfer Protocol) component of Microsoft Windows XP 64-bit Edition, Windows Server 2003, Windows Server 2003 64-bit Edition, and the Exchange Routing Engine component of Exchange Server 2003, allows remote attackers to execute arbitrary code via a malicious DNS response message containing length values that are not properly validated.

10.0 CVSS 2.0 High EPSS 30% · top 1.7% CWE-20 · Improper input validation
10.0CVSS 2.0 base score
30%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
16References
16 Jun 2026Last modified by NVD

Description

The SMTP (Simple Mail Transfer Protocol) component of Microsoft Windows XP 64-bit Edition, Windows Server 2003, Windows Server 2003 64-bit Edition, and the Exchange Routing Engine component of Exchange Server 2003, allows remote attackers to execute arbitrary code via a malicious DNS response message containing length values that are not properly validated.

AV:N/AC:L/Au:N/C:C/I:C/A:C

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.kb.cert.org/vuls/id/394792 PatchThird Party AdvisoryUS Government Resource
http://www.securityfocus.com/bid/11374 Third Party AdvisoryVDB Entry
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2004/ms04-035 PatchVendor Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/17621 Third Party AdvisoryVDB Entry
https://exchange.xforce.ibmcloud.com/vulnerabilities/17660 Third Party AdvisoryVDB Entry
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2300 Third Party Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A3460 Third Party Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5509 Third Party Advisory
http://www.kb.cert.org/vuls/id/394792 PatchThird Party AdvisoryUS Government Resource
http://www.securityfocus.com/bid/11374 Third Party AdvisoryVDB Entry
https://docs.microsoft.com/en-us/security-updates/securitybulletins/2004/ms04-035 PatchVendor Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/17621 Third Party AdvisoryVDB Entry
https://exchange.xforce.ibmcloud.com/vulnerabilities/17660 Third Party AdvisoryVDB Entry
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2300 Third Party Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A3460 Third Party Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5509 Third Party Advisory

Track CVE-2004-0840 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2008-4250Microsoft Windows Server service RPC path canonicalization buffer overflowThe Server service in multiple Windows versions fails to properly handle path canonicalization, allowing a crafted RPC request to overflow a buffer a…KEVEPSS 99%analysed8.8CVE-2009-1537Microsoft DirectShow QuickTime Parser NULL Byte Overwrite RCEThe QuickTime Movie Parser Filter in quartz.dll (DirectShow, DirectX 7.0 through 9.0c) contains an unspecified NULL byte overwrite flaw. A crafted Qu…KEVEPSS 51%analysed7.8CVE-2009-1123Microsoft Windows kernel improper validation allows local privilege escalationThe Windows kernel fails to properly validate changes to unspecified kernel objects, letting a local user elevate privileges through a crafted applic…KEVEPSS 4.9%analysed10.0CVE-2009-0086Microsoft windows 2000 vulnerabilityInteger underflow in Windows HTTP Services (aka WinHTTP) in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 and SP2, Vista Gold and SP1, …EPSS 14%10.0CVE-2008-4834Windows SMB Server Service buffer overflow allows remote code executionA buffer overflow exists in the SMB implementation of the Windows Server service, triggered by malformed field values inside SMB packets in an NT Tra…EPSS 46%analysed10.0CVE-2008-4038Microsoft windows 2000 memory buffer overflow vulnerabilityBuffer underflow in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 and SP2, Vista Gold and SP1, and Server 2008 allows remote attackers …EPSS 39%10.0CVE-2007-0213Microsoft Exchange MIME base64 decoding remote code executionMicrosoft Exchange Server 2000 SP3, 2003 SP1/SP2, and 2007 fail to properly decode certain MIME-encoded emails, allowing remote code execution via a …EPSS 68%analysed10.0CVE-2006-2373Microsoft windows 2000 permissions and access controls vulnerabilityThe Server Message Block (SMB) driver (MRXSMB.SYS) in Microsoft Windows 2000 SP4, XP SP1 and SP2, and Server 2003 SP1 and earlier allows local users …EPSS 29%

Source: NIST National Vulnerability Database (record CVE-2004-0840), CISA KEV, FIRST EPSS (scores of 2026-11-23). This page is refreshed as NVD updates the record.