CVE-2007-3040
NoneCVSS
—
EPSS
54.4%
Published
Sep 12, 2007
CISA due date
—
Cloudanix analysis
A very old flaw in an outdated Windows feature could let attackers take over computers simply by getting a user to visit a specially made web page.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in agentdpv.dll within the Microsoft Agent ActiveX control (Agent.Control) allows remote attackers to execute arbitrary code by supplying a crafted URL that overflows a buffer inside the agentsrv.exe service process.
Why it matters to the business
Enables full remote code execution on legacy Windows 2000 systems that remain in use, potentially leading to complete system compromise, data theft, or use as an attack foothold; the absence of patches and end-of-support status for the affected platform increases long-term operational risk and compliance exposure.
How an attack unfolds
An attacker hosts or delivers a web page containing a malicious URL targeting the Agent.Control ActiveX control; when rendered on an unpatched Windows 2000 system the crafted input triggers the stack overflow inside agentsrv.exe, allowing the attacker to redirect execution flow and run arbitrary code with the privileges of the service.
How to fix it
Migrate all systems away from Windows 2000; if migration is impossible in the short term, disable the Microsoft Agent ActiveX control via registry or Group Policy, remove or rename agentdpv.dll, and restrict web content that can instantiate the control.
How to confirm the fix worked
Verify absence of agentdpv.dll version 2.0.0.3425, confirm Microsoft Agent service is disabled or removed, and test that crafted URLs no longer trigger the control or service crashes.
Typical attack path
- Attacker crafts malicious URL exploiting the buffer overflow in agentdpv.dll
- Malicious URL is delivered via web page, email, or other vector that loads the Agent ActiveX control
- Victim system processes the URL in Internet Explorer or another host application
- Overflow occurs inside agentsrv.exe enabling code execution
- Attacker payload executes, establishing persistence or further actions
How to detect it
Search process execution and crash logs for unexpected agentsrv.exe activity or faults, review web proxy logs for access to pages loading the Agent ActiveX control, and examine file integrity of agentdpv.dll on any remaining Windows 2000 hosts.
- agentdpv.dll
- agentsrv.exe
- Agent.Control
What your security team should do
- Immediately inventory and decommission any remaining Windows 2000 systems
- Block or restrict the Agent.Control ActiveX control enterprise-wide
- Implement web filtering and email attachment controls to prevent delivery of malicious URLs
- Monitor for agentsrv.exe process anomalies on any legacy hosts that cannot yet be retired
The record
Stack-based buffer overflow in agentdpv.dll 2.0.0.3425 in Microsoft Agent on Windows 2000 SP4 allows remote attackers to execute arbitrary code via a crafted URL to the Agent (Agent.Control) ActiveX control, which triggers an overflow within the Agent Service (agentsrv.exe) process, a different issue than CVE-2007-1205.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121517 A vulnerability was detected in IrfanView 4.76.0.0 on Win64. CWE-119
- CVE-2026-121229 Memory corruption in ANGLE in Google Chrome on on Android prior to 157.0.8103.38 allowed… CWE-119
- CVE-2026-121074 Memory corruption in GPU in Google Chrome on on Android prior to 157.0.8103.38 allowed a… CWE-119
- CVE-2026-95730 A buffer overflow vulnerability exists in HPE Networking VIA that could allow an… CWE-119
- CVE-2026-120572 Incorrect boundary conditions in the Layout: Block and Inline component. CWE-119
- CVE-2026-58977 In is_valid_header of timed_cache_item.c, there is a possible out-of-bounds write due to… CWE-119
- CVE-2026-59010 In deserialize of legacy.rs, there is a possible denial of service due to a missing… CWE-119
- CVE-2026-58988 In isValid of ShimConverter.cpp, there is a possible out of bounds read due to a missing… CWE-119