{"id":"CVE-2021-4239","aliases":["GHSA-g9mp-8g3h-3c5c","GO-2022-0425"],"url":"https://o3.security/vulnerability/CVE-2021-4239","summary":"Noise vulnerable to denial of service","details":"Noise is a Go implementation of the Noise Protocol Framework. 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-28T00:30:23Z","modified":"2023-11-08T04:07:06.025033Z","cvss":{"score":7.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/flynn/noise","fixedVersion":"1.0.0"}],"fix":{"url":"https://github.com/flynn/noise/pull/44","label":"flynn/noise#44"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4239"},{"type":"WEB","url":"https://github.com/flynn/noise/pull/44"},{"type":"WEB","url":"https://github.com/flynn/noise/commit/2499bf1bad239a8316c32932a993642350b3afdb"},{"type":"PACKAGE","url":"https://github.com/flynn/noise"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0425"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:07:06.025033Z"}}