Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0yajZyLTl2djQtNmdmNc4AA8WS

github.com/bincyber/go-sqlcrypter vulnerable to IV collision

There is a risk of an IV collision using the awskms or aesgcm provider. NIST SP 800-38D section 8.3 states that it is unsafe to encrypt more than 2^32 plaintexts under the same key when using a random IV. The limit could easily be reached given the use case of database column encryption. Ciphertexts are likely to be persisted and stored together. IV collision could enable an attacker with access to the ciphertexts to decrypt all messages encrypted with the affected key.

The aesgcm provider cannot be fixed without a breaking change, so users should not encrypt more than 2^32 values with any key. The awskms package can be fixed without a breaking change by switching to a counter-based IV.

Permalink: https://github.com/advisories/GHSA-2j6r-9vv4-6gf5
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0yajZyLTl2djQtNmdmNc4AA8WS
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 4 months ago
Updated: 4 months ago


CVSS Score: 3.7
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-2j6r-9vv4-6gf5
References: Repository: https://github.com/bincyber/go-sqlcrypter
Blast Radius: 1.1

Affected Packages

go:github.com/bincyber/go-sqlcrypter
Dependent packages: 2
Dependent repositories: 2
Downloads:
Affected Version Ranges: >= 0.1.0, <= 0.2.0
No known fixed version
All affected versions: 0.1.0, 0.2.0