Advisory

GHSA-6cr6-fmvc-vw2p

Also known as: CVE-2021-4239, GHSA-g9mp-8g3h-3c5c, GO-2022-0425

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-28 00:30 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

github.com/flynn/noise

Go · All systems

Affected

  • introduced 0, fixed 1.0.0 (semver)

Fixed versions

1.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences