Microsoft.Data.SqlClient is vulnerable to Authentication Bypass by Capture-replay
71
CVE Score
High
Authentication Bypass by Capture-replay
Affected versions of this package do not check that the enclave public key used to set up an Always Encrypted secure enclave session is the same key that the signed attestation report commits to. In the Host Guardian Service (HGS) attestation flow, the client verifies the attestation report but then derives the shared session secret from whatever enclave public key the server sends. An attacker who can intercept traffic between the client and SQL Server (a machine-in-the-middle position) can replay a valid attestation report while swapping in their own public key. This lets them set up the enclave session themselves and obtain the column encryption keys the client sends to the enclave, which exposes the plaintext of the protected database columns.
Upgrade the Microsoft.Data.SqlClient library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application connects with Always Encrypted with secure enclaves using the HGS attestation protocol (Attestation Protocol=HGS with a VBS enclave).
1.0.0 - 6.1.6
Fixed in 6.1.77.0.0 - 7.0.2
Fixed in 7.0.3Microsoft.Data.SqlClient is vulnerable to Authentication Bypass by Capture-replay in versions 1.0.0 - 6.1.6 and 7.0.0 - 7.0.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.