CVE-2020-14966 ECDSA signature validation vulnerability by accepting wrong ASN.1 encoding in jsrsasign

High 7.5 Published Updated

Attackers can create malleable ECDSA signatures that pass verification, potentially bypassing security checks in applications relying on canonical signatures.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-14966?

CVE-2020-14966 is a high-severity vulnerability in n/a, published on 22 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in the jsrsasign package through 8.0.18 for Node.js. It allows a malleability in ECDSA signatures by not checking overflows in the length of a sequence and '0' characters appended or prepended to an integer. The modified signatures are verified as valid. This could have a security-relevant impact if an application relied on a single canonical signature.

Weakness: CWE-347

Which versions are affected by CVE-2020-14966?

2 open source packages ship an affected version, including jsrsasign. It affects 2 products.

PackageAffectedFixed in
jsrsasign npmFrom 4.0.08.0.19
jsrsasign npmFrom 4.0.08.0.19

Products include Kjur Jsrsasign, Netapp Max Data.

How do I fix CVE-2020-14966?

Upgrade jsrsasign to 8.0.19 or later.

Is CVE-2020-14966 being exploited?

There is no known exploitation of CVE-2020-14966 in the wild and no public exploit code.

Sources

Also known as GHSA-p8c3-7rj8-q963.

Is CVE-2020-14966 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free