web-auth/cose-lib is vulnerable to Private Key Recovery
68
Medium Risk
EdDSA::sign() builds the libsodium signing key by concatenating the caller-supplied private seed with a caller-supplied public key, without checking that the public key is the one derived from the seed. An observer of two signatures over the same message produced with the same seed but different public halves recovers the long-term private scalar through modular arithmetic, and missing length validation lets malformed keys reach the signing call. This exposes the Ed25519 private key to a party able to influence the public key passed to signing. The fix derives the key pair from the seed alone and rejects a supplied public key that does not match the derived value.
You are affected if you are using a version that falls within the vulnerable range and you call EdDSA::sign() with a public key supplied separately from the private seed.
web-auth/cose-lib is vulnerable to Private Key Recovery in versions 2.1.0 - 4.7.1.
Upgrade the web-auth/cose-lib library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.