A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-47954

CVE-2025-47954: Microsoft SQL Server 2022 SQLi Vulnerability

CVE-2025-47954 is a SQL injection vulnerability in Microsoft SQL Server 2022 that allows authorized attackers to elevate privileges over a network. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-47954 Overview

CVE-2025-47954 is a SQL injection vulnerability in Microsoft SQL Server 2022 that allows an authenticated attacker to elevate privileges over a network. The flaw is tracked under CWE-89, improper neutralization of special elements used in an SQL command. An attacker with low-privilege access can submit crafted SQL statements that the server fails to sanitize. Successful exploitation results in full compromise of confidentiality, integrity, and availability on the affected database instance. Microsoft published the advisory on August 12, 2025, and the issue is documented in the Microsoft Security Update CVE-2025-47954.

Critical Impact

An authenticated network attacker can inject SQL commands to escalate privileges and gain administrative control over the SQL Server 2022 instance.

Affected Products

  • Microsoft SQL Server 2022 (x64)
  • Database instances exposing SQL endpoints to authenticated users
  • Applications relying on vulnerable SQL Server 2022 builds for backend storage

Discovery Timeline

  • 2025-08-12 - Microsoft publishes advisory for CVE-2025-47954
  • 2025-08-12 - CVE-2025-47954 published to NVD
  • 2025-08-14 - Last updated in NVD database

Technical Details for CVE-2025-47954

Vulnerability Analysis

The vulnerability resides in SQL Server 2022's handling of user-supplied input within SQL commands. The server fails to properly neutralize special characters before incorporating them into query execution paths. An authenticated attacker with low privileges can craft input that breaks out of the intended query context. The injected statements execute under the privilege boundary of the SQL Server process or a higher-privileged database role.

Exploitation requires network access to the SQL Server endpoint and valid credentials. Once exploited, the attacker can read, modify, or destroy any data accessible to the server. The attacker can also execute administrative operations reserved for sysadmin or db_owner roles. The EPSS score of 1.543% places this issue in the 81st percentile for exploit likelihood.

Root Cause

The root cause is improper input neutralization in SQL command construction, classified as [CWE-89]. Special characters such as single quotes, semicolons, and comment markers are not consistently escaped before being passed to the query parser. This allows attacker-controlled input to alter the structure of executed SQL statements rather than being treated as literal data.

Attack Vector

The attack vector is network-based with low complexity and requires low privileges. An authenticated user submits malicious payloads through any interface that accepts SQL input, including stored procedures, parameterized queries that internally concatenate strings, or system functions that handle metadata. The injected SQL executes within the server context and bypasses access control checks. No user interaction is required to complete the exploit chain.

Detailed proof-of-concept code is not publicly available. Refer to the Microsoft Security Update CVE-2025-47954 advisory for vendor technical context.

Detection Methods for CVE-2025-47954

Indicators of Compromise

  • Unexpected execution of xp_cmdshell, sp_configure, or other privileged stored procedures by low-privilege accounts
  • Anomalous role membership changes adding users to sysadmin or db_owner groups
  • SQL Server error log entries showing malformed queries with embedded comment delimiters or stacked statements
  • Outbound network connections originating from the SQL Server service account

Detection Strategies

  • Enable SQL Server Audit to capture SCHEMA_OBJECT_ACCESS_GROUP and DATABASE_ROLE_MEMBER_CHANGE_GROUP events
  • Deploy database activity monitoring rules that flag SQL syntax patterns associated with injection, such as ' OR 1=1 or UNION SELECT from unexpected accounts
  • Correlate authentication events with subsequent privilege-altering operations in the same session
  • Ingest SQL Server logs into a centralized SIEM for behavioral baselining of query patterns per service account

Monitoring Recommendations

  • Forward SQL Server audit logs and Windows Security events to a centralized log platform for retention and search
  • Alert on logins that suddenly execute EXEC or sp_executesql calls outside their normal application profile
  • Monitor for changes to logins, server roles, and linked server configurations
  • Track query volume and error rates per principal to identify enumeration or fuzzing activity

How to Mitigate CVE-2025-47954

Immediate Actions Required

  • Apply the Microsoft security update referenced in the MSRC advisory for CVE-2025-47954 to all SQL Server 2022 instances
  • Inventory all SQL Server 2022 deployments, including embedded or third-party application backends
  • Rotate credentials for any database accounts that may have been exposed to untrusted callers
  • Review recent audit logs for evidence of unauthorized privilege changes prior to patching

Patch Information

Microsoft has released a security update addressing CVE-2025-47954. Administrators should install the August 2025 cumulative update for SQL Server 2022 through Microsoft Update, WSUS, or the Microsoft Update Catalog. Confirm the build number after installation matches the fixed version listed in the vendor advisory. Restart the SQL Server service to complete remediation.

Workarounds

  • Restrict network access to SQL Server endpoints using firewall rules and segment database servers from general user networks
  • Enforce least-privilege role assignments and remove unnecessary sysadmin memberships from application accounts
  • Use parameterized queries and stored procedures with strict input typing in all upstream applications
  • Enable Extended Protection for Authentication and require encrypted connections to limit credential exposure
bash
# Verify SQL Server 2022 build after patching
sqlcmd -S localhost -Q "SELECT SERVERPROPERTY('ProductVersion'), SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('ProductUpdateLevel')"

# Audit elevated role membership
sqlcmd -S localhost -Q "SELECT sp.name AS login, srm.role_principal_id FROM sys.server_role_members srm JOIN sys.server_principals sp ON srm.member_principal_id = sp.principal_id WHERE srm.role_principal_id = SUSER_ID('sysadmin')"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechMicrosoft Sql Server

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Vendor Resources
  • Microsoft Security Update CVE-2025-47954
  • Related CVEs
  • CVE-2025-59499: Microsoft SQL Server 2016 SQLi Vulnerability

  • CVE-2025-53727: Microsoft SQL Server 2016 SQLi Vulnerability

  • CVE-2026-40370: SQL Server RCE Vulnerability

  • CVE-2026-32167: SQL Server 2016 Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English