github.com/flynn/noise
Affected
- introduced
0, fixed1.0.0(semver)
Fixed versions
1.0.0
Fix
- Fixed version
1.0.0go get github.com/flynn/[email protected]
Advisory
Also known as: CVE-2021-4239, GHSA-6cr6-fmvc-vw2p, GHSA-g9mp-8g3h-3c5c
Weak encryption and denial of service in github.com/flynn/noise
The Noise protocol implementation suffers from weakened cryptographic security after encrypting 2^64 messages, and a potential denial of service attack.
After 2^64 (~18.4 quintillion) messages are encrypted with the Encrypt function, the nonce counter will wrap around, causing multiple messages to be encrypted with the same key and nonce.
In a separate issue, the Decrypt function increments the nonce state even when it fails to decrypt a message. If an attacker can provide an invalid input to the Decrypt function, this will cause the nonce state to desynchronize between the peers, resulting in a failure to encrypt all subsequent messages.
Not rated by the source.
0, fixed 1.0.0 (semver)1.0.0
1.0.0go get github.com/flynn/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: Go Vulnerability Database · CC BY 4.0