Generation of Predictable Initialization Vectors (IVs) Affecting github.com/bincyber/go-sqlcrypter/providers/awskms package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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

Introduced: 30 Jan 2024

CVE NOT AVAILABLE CWE-329 Open this link in a new tab

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.

CVSS Scores

version 3.1
Expand this section

Snyk

5.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None