If functions Encapsulate()
, Decapsulate()
and ECDH()
could be called by an attacker, he could recover any private key that he interacts with.
Patched in v2.0.8
You could manually check public key by calling IsOnCurve()
function from secp256k1 libraries.
https://github.com/ashutosh1206/Crypton/blob/master/Diffie-Hellman-Key-Exchange/Attack-Invalid-Curve-Point/README.md
{ "nvd_published_at": "2023-12-05T00:15:09Z", "cwe_ids": [ "CWE-200" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2023-12-05T23:30:56Z" }