libsodium has Incomplete List of Disallowed Inputs
libsodium
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| paragonie/sodium_compat Packagist |
|
|
| pynacl PyPI |
|
|
libsodium
| Product | Affected | Fixed in |
|---|---|---|
| paragonie/sodium_compat Packagist |
|
|
| pynacl PyPI |
|
|
| hdwallet PyPI |
|
|
libsodium before ad3004e, in atypical use cases involving certain custom cryptography or untrusted data to crypto_core_ed25519_is_valid_point, mishandles checks for whether an elliptic curve point is valid because it sometimes allows points that aren't in the main cryptographic group.
From the CVE record · mitre
libsodium before ad3004e can incorrectly accept elliptic-curve points outside the main cryptographic group. This occurs in atypical uses involving custom cryptography or untrusted data passed to crypto_core_ed25519_is_valid_point; the input does not specify an authentication or user-interaction requirement.
Check deployments of libsodium before ad3004e, paragonie/sodium_compat versions >=2 and <2.5.0 or <1.24.0, pynacl versions <1.6.2, and hdwallet versions <3.6.1.