CVE-2025-49717
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedHeap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceHeap-based buffer overflow vulnerability in Microsoft SQL Server enabling authenticated remote attackers to execute arbitrary code via network access. The heap overflow indicates memory corruption in SQL Server's heap memory management, allowing an attacker with valid database credentials to overflow heap allocations and achieve code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 15.0.2000.5, < 15.0.2135.5>= 15.0.4003.23, < 15.0.4435.7>= 16.0.1000.6, < 16.0.1140.6>= 16.0.4003.1, < 16.0.4200.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed SQL Server versionRun 'SELECT @@VERSION' in SQL Server Management Studio or execute 'sqlcmd -S localhost -Q "SELECT @@VERSION"' from command line. Alternatively, view the installed version in Programs and Features (Windows) or check the SQL Server ERRORLOG file.Affected if The version number returned does not fall outside all affected ranges (15.0.2135.5+, 15.0.4435.7+, 16.0.1140.6+, 16.0.4200.1+)
-
Confirm SQL Server edition and build numberRun 'SELECT SERVERPROPERTY('ProductVersion'), SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition')' to get the precise build number and edition.Affected if The ProductVersion falls within any of these ranges: 15.0.2000.5 to 15.0.2134.9, 15.0.4003.23 to 15.0.4435.6, 16.0.1000.6 to 16.0.1140.5, or 16.0.4003.1 to 16.0.4200.0
-
Verify network connectivity is enabledOpen SQL Server Configuration Manager, navigate to SQL Server Network Configuration, and check if TCP/IP protocols are enabled. Alternatively, check if the SQL Server service is listening on port 1433 (or custom port) using 'netstat -an | findstr 1433'.Affected if TCP/IP protocol is enabled and SQL Server is listening on network interfaces, allowing remote connections
-
Check for exposed SQL Server portsRun 'netstat -ano | findstr :1433' (or your custom SQL port) to see if SQL Server is bound to 0.0.0.0 or external IP addresses rather than only localhost.Affected if SQL Server is bound to non-loopback addresses (0.0.0.0 or external IP) indicating network accessibility
If the installed SQL Server version falls within any of the affected build ranges and the instance is accessible over the network, the environment is potentially affected by this heap-based buffer overflow vulnerability.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped15.0.2135.515.0.4435.716.0.1140.6
Apply the Microsoft security update for this vulnerability once released; ensure SQL Server is updated to a patched version. Since this requires an authorized attacker, enforce least-privilege database accounts and network segmentation to limit exposure.
SQL Server 2019: 15.0.2135.5 or later (CU26), or 15.0.4435.7 or later (CU31) | SQL Server 2022: 16.0.1140.6 or later (CU12), or 16.0.4200.1 or later (CU17)
- For SQL Server 2019: Determine current version by running 'SELECT @@VERSION' in SQL Server Management Studio
- If version is 15.0.2000.5 through 15.0.2135.4, upgrade to SQL Server 2019 build 15.0.2135.5 or later (Cumulative Update 26)
- If version is 15.0.4003.23 through 15.0.4435.6, upgrade to SQL Server 2019 build 15.0.4435.7 or later (Cumulative Update 31)
- For SQL Server 2022: If version is 16.0.1000.6 through 16.0.1140.5, upgrade to SQL Server 2022 build 16.0.1140.6 or later (Cumulative Update 12)
- If version is 16.0.4003.1 through 16.0.4200.0, upgrade to SQL Server 2022 build 16.0.4200.1 or later (Cumulative Update 17)
- Download the appropriate Cumulative Update from https://learn.microsoft.com/en-us/sql/database-engine/install-windows/latest-updates-for-microsoft-sql-server
- Apply the update during a maintenance window following standard SQL Server patching procedures
- Verify successful installation by running 'SELECT @@VERSION' and confirming the build number matches or exceeds the target fix version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,080.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-49717 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-49717 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data