Generation of Predictable Initialization Vectors (IVs) Affecting github.com/bincyber/go-sqlcrypter/providers/awskms package, versions *
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMBINCYBERGOSQLCRYPTERPROVIDERSAWSKMS-6928979
- published 21 May 2024
- disclosed 30 Jan 2024
- credit takeyourhatoff
How to fix?
There is no fixed version for github.com/bincyber/go-sqlcrypter/providers/awskms
.
Overview
github.com/bincyber/go-sqlcrypter/providers/awskms is an AWS KMS using envelope encryption with 256-bit AES in Galois/Counter Mode (GCM).
Affected versions of this package are vulnerable to Generation of Predictable Initialization Vectors (IVs) due to the risk of an IV collision using the awskms
or aesgcm
provider. An attacker can decrypt all messages encrypted with the affected key by exploiting the IV collision. This is only exploitable if more than 2^32 plaintexts are encrypted under the same key when using a random IV.