CVE-2002-0721: Privilege Escalation via Weak Permissions on SQL Server Extended Stored Procedures
- Vendor
- Microsoft Corporation
Microsoft SQL Server 7.0 and 2000 are installed with weak permissions on certain extended stored procedures (xp_execresultset, xp_printstatements, xp_displayparamstmt) that are associated with helper functions. These permissions allow unprivileged users, and potentially remote attackers, to execute these procedures with administrator privileges, leading to privilege escalation within the SQL Server environment.
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.
An attacker with access to the SQL Server instance could exploit these weak permissions to execute arbitrary code or commands with administrative privileges, potentially compromising the entire database server and any data or services it manages. This could also be leveraged for lateral movement within the network if the SQL Server has additional privileges or trust relationships.
Mitigation
If you can’t patch tonight, do this now.
As an immediate mitigation, manually audit and restrict permissions on the affected extended stored procedures (xp_execresultset, xp_printstatements, xp_displayparamstmt) to prevent unprivileged users from executing them. Limit network access to the SQL Server to trusted hosts and users only, and monitor for any suspicious activity involving these procedures.
Remediation
Patch, then assume compromise.
Apply the security patches provided by Microsoft for SQL Server 7.0 and 2000 that address this issue. Additionally, review and restrict permissions on all extended stored procedures, ensuring that only trusted and necessary accounts have execute permissions, especially for procedures that can execute code or commands.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
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.
References
Frequently asked questions
- Is CVE-2002-0721 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2002-0721 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2002-0721?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2002-0721. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2002-0721?
- Apply the security patches provided by Microsoft for SQL Server 7.0 and 2000 that address this issue. Additionally, review and restrict permissions on all extended stored procedures, ensuring that only trusted and necessary accounts have execute permissions, especially for procedures that can execute code or commands.
- What products are affected by CVE-2002-0721?
- Microsoft Corporation Sql Server and Microsoft Corporation Data Engine.
- How severe is CVE-2002-0721?
- CVE-2002-0721 has a CVSS v2 score of 10.0 (Critical) and an EPSS score of 46.3% (99th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.