Security Resilience

CVE-2023-21705

Exposed Creds in Microsoft Sql Server 2012 … 2022

Published
14 February 2023
Modified
02 November 2026
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.011 67th percentile
Risk Priority 66 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-21705 is a high-severity Use of Hard-coded Cryptographic Key (CWE-321) vulnerability in Microsoft Sql Server. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Remote Services (T1021); ranked in the top 33% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Microsoft SQL Server Remote Code Execution Vulnerability

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1021 Remote Services Lateral Movement
Adversaries may use [Valid Accounts](https://attack.
T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1078.001 Default Accounts Stealth
Adversaries may obtain and abuse credentials of a default account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1078.003 Local Accounts Stealth
Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-21718Same product: Microsoft Sql Server
CVE-2023-23384Same product: Microsoft Sql Server
CVE-2023-21528Same product: Microsoft Sql Server
CVE-2023-21704Same product: Microsoft Sql Server
CVE-2020-0618Same product: Microsoft Sql Server
CVE-2023-21713Same product: Microsoft Sql Server
CVE-2025-58740Same vendor: Microsoft
CVE-2023-36785Same product: Microsoft Sql Server
CVE-2023-32025Same product: Microsoft Sql Server
CVE-2023-36417Same product: Microsoft Sql Server

Affected Assets

microsoft
sql server
2012, 2014, 2016, 2017, 2019

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-321

Supply chain protection includes scrutiny of cryptographic implementations, reducing hard-coded keys planted by untrusted vendors.

addresses: CWE-321

Functional and assurance requirements specified in acquisition can prohibit hard-coded cryptographic keys in delivered products.

addresses: CWE-321

Proper key establishment and management processes directly preclude embedding static cryptographic keys in source code or binaries.

addresses: CWE-321

Approved PKI issuance and trust stores replace ad-hoc or hard-coded keys with properly managed, signed certificates.

addresses: CWE-321

Assessments can uncover and prevent suppliers from shipping components that contain hard-coded cryptographic keys.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure-SDLC activities such as code review and secret scanning directly prevent embedding static keys.

PR.DS-01 partial match
blocks

Data-at-rest protection policies require proper key management and therefore discourage hard-coded keys.

PR.DS-02 partial match
blocks

Data-in-transit protection similarly depends on non-hard-coded keys for encryption.

PR.PS-01 partial match
blocks

Configuration baselines and reviews can prohibit hard-coded keys in deployed artifacts.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

prevents

A.8.24's key management section explicitly mandates proper key generation, storage, distribution, and lifecycle processes — the antithesis of hard-coding keys into products — so a well-implemented cryptography policy prevents hard-coded keys in anything the organization designs or builds; the bounded remainder is third-party, COTS, and legacy components that arrive with keys already embedded, mirroring the CWE-328 anchor.

finds

A.8.29's SOURCE + RUNTIME reach finds hard-coded cryptographic keys in first-party source via SAST, code review, and penetration testing — the same mechanism that graded A.8.29 finds CWE-798 = mostly; the bounded remainder is keys assembled at build time, baked into images as configuration, or shipped inside binary-only third-party components.

prevents

A.8.28 explicitly prohibits hard-coded passwords as an example of insecure design techniques and mandates secure coding standards that would cover hard-coded cryptographic keys, but as a practice-based control it is fallible and depends on developer compliance, with the strongest detection coming from A.8.29 security testing.

finds

A.8.8's reach is DISCLOSURE: it finds hard-coded keys only where a vendor has published a CVE/advisory for a third-party component in the operator's inventory. CWE-321 does surface as CVEs (multiple observed examples), so the disclosed third-party share is real, but it is a minority of all instances — first-party code is outside A.8.8's reach (that is A.8.28/A.8.29), and many hard-coded keys remain unpublished. `full` is out of reach on disclosure-only scanning.

References