CVE-2021-4239 Weak encryption and denial of service in github.com/flynn/noise
HighCVSS 7.5
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| flynn github.com/flynn/noise(Go) | < 1.0.0 | 1.0.0 |
| ubuntu/golang-github-flynn-noise(Ubuntu:22.04) | All versions | No fix listed |
| noiseprotocol noise | All versions | No fix listed |
| ubuntu/golang-github-flynn-noise(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-flynn-noise(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-flynn-noise(Ubuntu:26.10) | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- pkg.go.dev patch vendor-advisory
- github.com patch
- github.com
- github.com product
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2021-4239 vendor-advisory