{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4239","id":"CVE-2021-4239","title":"Weak encryption and denial of service in github.com/flynn/noise","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 no","descriptionLong":"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.","published":"2022-12-27T21:13:53.590Z","updated":"2026-06-17T04:19:19.820Z","reserved":"2022-07-29T20:06:51.345Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"CISA-ADP"}],"rating":"high","products":["github.com/flynn/noise"],"affectedProducts":[{"vendor":"github.com/flynn/noise","product":"github.com/flynn/noise","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.0.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-311"],"aliases":[],"references":[{"url":"https://github.com/flynn/noise/pull/44","tags":["x_transferred","Patch","Third Party Advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0425","tags":["x_transferred","Patch","Vendor Advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00378,"epssPercentile":0.32364,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4239","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4239","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4239","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4239","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}