{"id":"GHSA-6cr6-fmvc-vw2p","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.","aliases":["CVE-2021-4239","GHSA-g9mp-8g3h-3c5c","GO-2022-0425"],"modified":"2023-11-01T04:56:38.282458Z","published":"2022-12-28T00:30:23Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-12-29T01:52:11Z","nvd_published_at":"2022-12-27T22:15:00Z","cwe_ids":["CWE-311"]},"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"}],"affected":[{"package":{"name":"github.com/flynn/noise","ecosystem":"Go","purl":"pkg:golang/github.com/flynn/noise"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-6cr6-fmvc-vw2p/GHSA-6cr6-fmvc-vw2p.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H"}]}