blob: da7064dca31c1dea4cbfd33168aadd15d3d59c97 [file] [log] [blame]
{
"id": "GO-2022-0425",
"published": "2022-02-15T01:57:18Z",
"modified": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2021-4239",
"GHSA-g9mp-8g3h-3c5c",
"GHSA-6cr6-fmvc-vw2p"
],
"details": "The Noise protocol implementation suffers from weakened cryptographic security after encrypting 2^64 messages, and a potential denial of service attack.\n\nAfter 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.\n\nIn 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": [
{
"package": {
"name": "github.com/flynn/noise",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
]
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0425"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/flynn/noise",
"symbols": [
"CipherState.Decrypt",
"CipherState.Encrypt",
"HandshakeState.ReadMessage",
"HandshakeState.WriteMessage",
"symmetricState.DecryptAndHash",
"symmetricState.EncryptAndHash"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://github.com/flynn/noise/pull/44"
}
],
"schema_version": "1.3.1"
}