starkbank/ecdsa is vulnerable to Signature Malleability
31
CVE Score
Low
Signature Malleability
The pure-PHP ECDSA implementation in src/ecdsa.php signs messages without normalizing the result to the low-S form, so sign can emit high-S signatures and verify accepts both a signature and its N - s counterpart as valid for the same message and key. A party that observes one valid signature can therefore derive a second, distinct signature that still verifies, producing signature malleability that can break systems relying on signature uniqueness. The same code also omits an on-curve check for the supplied public key during verification and derives signing nonces from a plain random source instead of a hedged RFC 6979 construction. The fix normalizes signatures to low-S, rejects public keys that are not on the curve, adopts hedged RFC 6979 nonces, and corrects hash truncation for digests larger than the curve order.
Upgrade the starkbank/ecdsa library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
2.0.0 - 2.1.0
Fixed in 2.2.0starkbank/ecdsa is vulnerable to Signature Malleability in versions 2.0.0 - 2.1.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.