CVE-2021-4239
published high CVSS 3.1 · 7.5Weak encryption and denial of service in github.com/flynn/noise
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| github.com/flynn/noise | — | github.com/flynn/noise0 to < 1.0.0 · Other versions: unaffected | Affected | Not stated | Go |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| github.com/flynn/noise | github.com/flynn/noise | 0 to < 1.0.0 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE 400: Uncontrolled Resource Consumption
References
2Provider assertions
3Go · cna
Weak encryption and denial of service in github.com/flynn/noise
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a99abe3069584050d2ecb2d9faa6d0090027996df7aefb4e5364f7b1d5ec5207
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record