CVE-2022-44310: ecdh vulnerable to Exposure of Resource to Wrong Sphere
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.20008%
CWE
Published
2/24/2023
Updated
3/8/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| ecdh | npm | < 0.2.0 | 0.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing curve validation in the shared secret derivation process. The pre-patch code in index.js only checked for the existence of publicKey.Q (line 165) but didn't verify the point's validity on the curve. The fix introduced an 'onCurve' validation check within deriveSharedSecret, confirming this was the missing security control. The CVE description and associated issue #3 explicitly reference this attack vector through invalid points, directly implicating the deriveSharedSecret function as the vulnerable entry point.