{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-4239","published":"2022-12-27T22:15:12.123000Z","last_modified":"2026-06-17T04:19:19.820000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-311"],"cpes":[{"criteria":"cpe:2.3:a:noiseprotocol:noise:-:*:*:*:*:go:*:*","part":"a","vendor":"noiseprotocol","product":"noise"}],"cpes_truncated":false,"vendors":["noiseprotocol"],"products":["noiseprotocol/noise"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00378,"percentile":0.2367,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-6cr6-fmvc-vw2p","ecosystem":"Go","name":"github.com/flynn/noise","purl":"pkg:golang/github.com/flynn/noise","ranges":[{"introduced":"0","fixed":"1.0.0"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-g9mp-8g3h-3c5c","ecosystem":"Go","name":"github.com/flynn/noise","purl":"pkg:golang/github.com/flynn/noise","ranges":[{"introduced":"0","fixed":"1.0.0"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0425","ecosystem":"Go","name":"github.com/flynn/noise","purl":"pkg:golang/github.com/flynn/noise","ranges":[{"introduced":"0","fixed":"1.0.0"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2021-4239/","html_en":"/en/cve/CVE-2021-4239/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-4239","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-4239"},"untrusted":{"vendor_name":"Noiseprotocol","product_name":"Noise","desc_en":"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":[{"untrusted_vendor":"github.com/flynn/noise","untrusted_product":"github.com/flynn/noise","versions":[]}],"references":[{"url":"https://github.com/flynn/noise/pull/44","tags":["Patch","Third Party Advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0425","tags":["Patch","Vendor Advisory"]}]}}