web-auth/cose-lib is vulnerable to Improper Verification of Cryptographic Signature
53
Medium Risk
COSE RSA signature verification does not validate the public exponent of the supplied key before checking a signature. When a key carries a public exponent of 1, the RSA operation s^e mod n reduces to an identity function, so a party that controls the verifying public key produces a signature that verify() accepts for any message across the RS256/RS384/RS512/RS1 and PS256/PS384/PS512 algorithms. This lets forged signatures pass verification without possession of the private key. The fix enforces RFC 8017 public-parameter constraints (an odd exponent with 3 <= e < n) on every RSA sign and verify operation.
You are affected if you are using a version that falls within the vulnerable range and you verify COSE RSA signatures using key material supplied from an untrusted source.
web-auth/cose-lib is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 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.