{"id":"CVE-2026-118120","kind":"vulnerability","aliases":["CVE-2026-118120"],"related":[],"title":"SQL Server: SQL injection lets an authorized user gain higher privileges","description":"Improper neutralization of special elements used in an sql command ('sql injection') in SQL Server allows an authorized attacker to elevate privileges over a network.","summary":"SQL injection in SQL Server (CWE-89). A signed-in user with low privileges can escalate privileges over the network. CVSS 8.8. Affects SQL Server 2017, 2019, 2022 and 2025 builds below the fixed ones listed.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"SQL Server 2017","fixed":["14.0.2150.2","14.0.3570.2"],"affected":">= 14.0.0, < 14.0.2150.2 (GDR); >= 14.0.3006.16, < 14.0.3570.2 (CU31)","ecosystem":"vendor"},{"name":"SQL Server 2019","fixed":["15.0.2210.4","15.0.4510.2"],"affected":">= 15.0.0, < 15.0.2210.4 (GDR); >= 15.0.4003.23, < 15.0.4510.2 (CU32)","ecosystem":"vendor"},{"name":"SQL Server 2022","fixed":["16.0.1220.3","16.0.4315.2"],"affected":">= 16.0.0, < 16.0.1220.3 (GDR); >= 16.0.4003.1, < 16.0.4315.2 (CU27)","ecosystem":"vendor"},{"name":"SQL Server 2025","fixed":["17.0.1155.3","17.0.5045.3"],"affected":">= 17.0.1050.2, < 17.0.1155.3 (GDR); >= 17.0.4006.0, < 17.0.5045.3 (CU10)","ecosystem":"vendor"}],"ecosystems":[],"tags":["database","infrastructure","microsoft","privilege-escalation","self-hosted","sql-server"],"not_affected_if":["managed-hosting","no-authenticated-users","no-network-access","patched-build"],"how_to_check":"Run SELECT @@VERSION (or SELECT SERVERPROPERTY('ProductVersion')) and compare with the fixed builds for your branch. Any build lower than the fixed one is affected. Also check which logins can reach the instance over the network.","fix":"Update SQL Server to the fixed build for your branch (per Microsoft CNA data): 2017 GDR 14.0.2150.2 / CU31 14.0.3570.2; 2019 GDR 15.0.2210.4 / CU32 15.0.4510.2; 2022 GDR 16.0.1220.3 / CU27 16.0.4315.2; 2025 GDR 17.0.1155.3 / CU10 17.0.5045.3. Confirm against the MSRC entry.","status":"open","published_at":"2026-11-10T19:19:30+00:00","first_seen_at":"2026-11-10T19:24:48+00:00","triaged_at":"2026-11-10T19:30:18+00:00","updated_at":"2026-11-10T23:26:36+00:00","category":"infrastructure","confidence":0.6,"triage":{"at":"2026-11-10T19:30:18Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"SQL Server: SQL injection lets an authorized user gain higher privileges","impact":"high","summary":"SQL Server does not neutralize special characters in a SQL command, which is a SQL injection flaw. An attacker who already has a valid account can escalate their privileges over the network.","audience":"businesses","category":"infrastructure","nicknames":[],"who_cares":["sql-server","microsoft","database"],"confidence":0.5,"fix_status":"unknown","needs_auth":"yes","worst_case":"authorized user gains elevated privileges on the database server","analyst_note":"Check Microsoft's MSRC entry for CVE-2026-118120 for affected versions, the fixed build and any workaround.","how_to_check":"- Identify SQL Server instances and their versions with `SELECT @@VERSION`\n- Check whether the instance is reachable from untrusted networks\n- unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-network-access","no-authenticated-users"],"who_is_affected":"Organizations running Microsoft SQL Server where users have network access and valid accounts. Instances reachable only by trusted administrators carry less exposure. The sources do not list affected versions or a fix.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000686,"input_tokens":4499,"output_tokens":472,"severity_before":"high"},"analyst_status":"done","analyst_note":"Check Microsoft's MSRC entry for CVE-2026-118120 for affected versions, the fixed build and any workaround.","search":"'-118120':14A,17A '-2026':13A,16A '-89':48B '2017':20A,68B '2019':23A,69B '2022':26A,70B '2025':29A,72B '8.8':64B 'affect':65B 'allow':94C 'attack':97C 'author':7A,96C 'build':73B 'command':88C 'cve':12A,15A 'cvss':63B 'cwe':47B 'databas':30B 'element':83C 'elev':99C 'escal':35B,58B 'fix':76B 'gain':9A 'higher':10A 'host':38B 'improp':79C 'infrastructur':31B 'inject':4A,43B,90C 'let':5A 'list':78B 'low':55B 'microsoft':32B 'network':62B,103C 'neutral':80C 'one':77B 'privileg':11A,34B,56B,59B,100C 'privilege-escal':33B 'self':37B 'self-host':36B 'server':2A,19A,22A,25A,28A,41B,46B,67B,93C 'sign':51B 'signed-in':50B 'special':82C 'sql':1A,3A,18A,21A,24A,27A,40B,42B,45B,66B,87C,89C,92C 'sql-server':39B 'use':84C 'user':8A,53B","nicknames":[],"mitigations":[],"who_affected":"Organizations running Microsoft SQL Server where users have network access and valid accounts. Instances reachable only by trusted administrators carry less exposure. The sources do not list affected versions or a fix.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"businesses","plain_action":null,"pkeys":["server2017","server2019","server2022","server2025","sqlserver2017","sqlserver2019","sqlserver2022","sqlserver2025"],"ptokens":["2017","2019","2022","2025","server","sql"],"labels":["database","high","infrastructure","microsoft","privilegeescalation","selfhosted","sqlserver"],"campaign_type":null,"search_a":"'-118120':14A,17A '-2026':13A,16A '2017':20A '2019':23A '2022':26A '2025':29A 'author':7A 'cve':12A,15A 'gain':9A 'higher':10A 'inject':4A 'let':5A 'privileg':11A 'server':2A,19A,22A,25A,28A 'sql':1A,3A,18A,21A,24A,27A 'user':8A","search_b":"'-89':48B '2017':68B '2019':69B '2022':70B '2025':72B '8.8':64B 'affect':65B 'build':73B 'cvss':63B 'cwe':47B 'databas':30B 'escal':35B,58B 'fix':76B 'host':38B 'infrastructur':31B 'inject':43B 'list':78B 'low':55B 'microsoft':32B 'network':62B 'one':77B 'privileg':34B,56B,59B 'privilege-escal':33B 'self':37B 'self-host':36B 'server':41B,46B,67B 'sign':51B 'signed-in':50B 'sql':40B,42B,45B,66B 'sql-server':39B 'user':53B","search_c":"'allow':94C 'attack':97C 'author':96C 'command':88C 'element':83C 'elev':99C 'improp':79C 'inject':90C 'network':103C 'neutral':80C 'privileg':100C 'server':93C 'special':82C 'sql':87C,89C,92C 'use':84C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-10T19:19:30+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"secure@microsoft.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-118120","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118120","severity":null,"published_at":"2026-11-10T19:19:30+00:00","modified_at":"2026-11-10T19:19:31+00:00","first_seen_at":"2026-11-10T19:24:48+00:00","fetched_at":"2026-11-10T19:24:48+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-118120:3170","url":"https://app.opencve.io/cve/CVE-2026-118120","severity":null,"published_at":"2026-11-10T23:26:36+00:00","modified_at":"2026-11-10T23:26:36+00:00","first_seen_at":"2026-11-10T23:26:36+00:00","fetched_at":"2026-11-10T23:26:36+00:00","note":"MSRC page is JS-only and did not load; versions come from the Microsoft CNA record as mirrored by OpenCVE. The KB5129300 (2022 CU27) page does not list this CVE in its summary, so nothing marked verified. No exploitation or PoC seen.","cites":["https://app.opencve.io/cve/CVE-2026-118120"]}],"documents":[{"id":120161,"url":"https://app.opencve.io/cve/CVE-2026-118120","title":"OpenCVE: CVE-2026-118120 (mirrors Microsoft CNA record)","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}