Weak encryption and denial of service in github.com/flynn/noise
Published Dec 27, 2022
7.7
HIGHCVSS 3.1
EPSS 0.35%
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
-
- Version 0StatusaffectedConstraints<1.0.0
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Github.com/flynn/noise | Github.com/flynn/noise | unaffected |
|
- n/a
No data.
No Red Hat product state for this CVE.
github.com/flynn/noise
Go
Introduced 0 Fixed 1.0.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/flynn/noise | 0 | 1.0.0 |
Remediation
No remediation recorded yet.
References (5)
- https://github.com/advisories/GHSA-6cr6-fmvc-vw2p Advisory
- https://github.com/flynn/noise/commit/2499bf1bad239a8316c32932a993642350b3afdb
- https://github.com/flynn/noise/pull/44 PatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-4239
- https://pkg.go.dev/vuln/GO-2022-0425 PatchVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-6cr6-fmvc-vw2p | Advisory | |
| https://github.com/flynn/noise/commit/2499bf1bad239a8316c32932a993642350b3afdb | ||
| https://github.com/flynn/noise/pull/44 | PatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-4239 | ||
| https://pkg.go.dev/vuln/GO-2022-0425 | PatchVendor Advisory |
Change history (0)
No recorded changes yet.