GO-2024-2451 IV collision in github.com/bincyber/go-sqlcrypter
An attacker with access to ciphertexts can decrypt all messages if IV collisions occur due to excessive encryption under the same key.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- None listed
What is GO-2024-2451?
GO-2024-2451 is a vulnerability in github.com/bincyber/go-sqlcrypter, published on 30 Jan 2024.
Official description
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.
Which versions are affected by GO-2024-2451?
1 open source package ship an affected version, including github.com/bincyber/go-sqlcrypter.
| Package | Affected | Fixed in |
|---|---|---|
github.com/bincyber/go-sqlcrypter Go | From 0.1.0 | None |
How do I fix GO-2024-2451?
No fix has been published for GO-2024-2451 yet. Limit exposure of the affected software until one is available.
Is GO-2024-2451 being exploited?
There is no known exploitation of GO-2024-2451 in the wild and no public exploit code.