Description
go-jose before 1.0.4 suffers from an invalid curve attack for the ECDH-ES algorithm. When deriving a shared key using ECDH-ES for an encrypted message, go-jose neglected to check that the received public key on a message is on the same curve as the static private key of the receiver, thus making it vulnerable to an invalid curve attack.
Vulnerability type
CWE-326
Inadequate Encryption Strength
The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.
Impact on systems
| Scope | Impact |
| Access Control, Confidentiality |
Bypass Protection Mechanism, Read Application Data An attacker may be able to decrypt the data using brute force attacks. The attacker may have a reasonable chance of succeeding using current attack methods and resources. |
How to prevent it
Architecture and Design
Use an encryption scheme that is currently considered to be strong by experts in the field.
All 465 CWE-326 CVEs, with trend and prevention