Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2007-0038: Windows Animated Cursor Remote Code Execution Vulnerability

Published Mar 30, 2007 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.3Critical · v2
EPSS73.1%99th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Microsoft Corporation
IdentifiersCVE-2007-0038CWE-121

CVE-2007-0038 is a stack-based buffer overflow in Microsoft Windows cursor and icon processing, affecting Windows 2000 SP4, Windows XP, Windows Server 2003, and Windows Vista. Improper format validation permits an oversized length value in the second or a subsequent anih block of a RIFF-formatted cursor or icon file to corrupt memory. Rendering malicious content through web pages, email messages, or attachments can trigger arbitrary code execution or denial of service involving persistent reboots. The vulnerability is a variant of CVE-2005-0416 and was actively exploited when Microsoft released MS07-017.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation executes arbitrary code with the affected user's privileges. If that user has administrative privileges, exploitation can enable complete system compromise. The memory corruption can also cause denial of service through persistent reboots.

Mitigation

If you can’t patch tonight, do this now.

Use accounts with reduced privileges to limit the consequences of code execution. Internet Explorer 7 Protected Mode on Windows Vista protected against the web-based attacks known when the bulletin was published. Outlook 2007's default Microsoft Word rendering protected against the HTML email preview vector. Reading email as plain text mitigated the HTML email vector in supported Outlook versions, but not in Outlook Express; Windows Mail's plain-text protection did not extend to replying to or forwarding malicious messages. Blocking the animated-cursor filename extension alone is ineffective because malicious data can be carried in other image file types. These protections are vector-specific and do not replace the security update.

Remediation

Patch, then assume compromise.

Install the Microsoft MS07-017 security update, KB925902, which corrects validation of cursor, animated cursor, and icon formats before rendering. Restart the system after installation and verify successful deployment. The December 2008 Windows Server 2003 package revision requires no additional action on systems where the original update was successfully installed.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 13 not yet analyzed, such as Exploit-DB entries.

View more in app →
ms07_017_ani_loadimage_chunksize.rbThis repository contains a single Metasploit module: 'ms07_017_ani_loadimage_chunksize.rb', which exploits a stack buffer overflow in the LoadAniIcon() function of USER32.dll on various versions of Microsoft Windows. The exploit is delivered via SMTP by sending a specially crafted HTML email to the target. The email embeds a malicious .ANI (animated cursor) file using the CSS 'CURSOR' directive, which triggers the vulnerability when processed by Outlook Express or similar email clients. The module supports multiple Windows targets and DLL versions, with specific return addresses for each. The payload is fully customizable using Metasploit's payload system, allowing for arbitrary code execution on the victim's machine. The exploit leverages both email and network attack vectors and targets specific Windows DLLs as fingerprintable endpoints. The code is mature, weaponized, and part of the official Metasploit framework.Disclosed Mar 28, 2007 · Framework: metasploit · ruby · email · networkWeaponizedms07_017_ani_loadimage_chunksize.rbThis repository contains a single Metasploit module: ms07_017_ani_loadimage_chunksize.rb, which exploits a stack buffer overflow vulnerability (CVE-2007-0038) in the LoadAniIcon() function of USER32.dll on various versions of Microsoft Windows. The exploit is weaponized and acts as a malicious HTTP server, serving a specially crafted .ANI file that triggers the vulnerability when loaded by Internet Explorer 6/7 or Firefox browsers on affected Windows systems. The module supports multiple targets and versions, automatically detecting the browser and OS to deliver the appropriate payload. The payload is customizable via Metasploit and typically results in arbitrary code execution on the victim's machine. The main attack vector is through the browser, requiring the victim to visit the attacker's server. The only code file is a Ruby script structured as a standard Metasploit exploit module, with clear entry points and configuration options for the HTTP server and URI path.Disclosed Mar 28, 2007 · Framework: metasploit · ruby · browser · networkWeaponized
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindows 2000operating_system
Microsoft CorporationWindows 2003 Serveroperating_system
Microsoft CorporationWindows Vistaoperating_system
Microsoft CorporationWindows Xpoperating_system
FAQ

Frequently asked questions

Is CVE-2007-0038 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2007-0038?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2007-0038, the earliest disclosed Mar 28, 2007.
Is there a patch for CVE-2007-0038?
Install the Microsoft MS07-017 security update, KB925902, which corrects validation of cursor, animated cursor, and icon formats before rendering. Restart the system after installation and verify successful deployment.
What products are affected by CVE-2007-0038?
Microsoft Corporation Windows 2000, Microsoft Corporation Windows Vista, Microsoft Corporation Windows Xp, and Microsoft Corporation Windows 2003 Server.
How severe is CVE-2007-0038?
CVE-2007-0038 has a CVSS v2 score of 9.3 (Critical) and an EPSS score of 73.1% (99th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.