blob: 45ec6a7f2bd1c5f10246cbcefcab56a9d901c20d [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"
],
"details": "The Noise protocol implementation suffers from weakened\ncryptographic security after encrypting 2^64 messages, and a\npotential denial of service attack.\n\nAfter 2^64 (~18.4 quintillion) messages are encrypted with the\nEncrypt function, the nonce counter will wrap around, causing\nmultiple messages to be encrypted with the same key and nonce.\n\nIn a separate issue, the Decrypt function increments the nonce\nstate even when it fails to decrypt a message. If an attacker\ncan provide an invalid input to the Decrypt function, this will\ncause the nonce state to desynchronize between the peers,\nresulting in a failure to encrypt all subsequent messages.\n",
"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"
}
]
}