CVE-2022-41340 secp256k1-js implements ECDSA without required r and s validation, leading to signature forgery

High 7.5 Published Updated

Attackers can forge ECDSA signatures due to missing validation in secp256k1-js, compromising cryptographic integrity for Node.js applications.

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

What is CVE-2022-41340?

CVE-2022-41340 is a high-severity vulnerability in n/a, published on 24 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The secp256k1-js package before 1.1.0 for Node.js implements ECDSA without required r and s validation, leading to signature forgery.

Weakness: CWE-347

Which versions are affected by CVE-2022-41340?

2 open source packages ship an affected version, including @lionello/secp256k1-js. It affects 1 product.

PackageAffectedFixed in
@lionello/secp256k1-js npmAll versions1.1.0
@lionello/secp256k1-js npmAll versions1.1.0

Products include Secp256k1-Js Project Secp256k1-Js.

How do I fix CVE-2022-41340?

Upgrade @lionello/secp256k1-js to 1.1.0 or later.

Is CVE-2022-41340 being exploited?

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

Sources

Also known as GHSA-q3f4-9h4p-vgr3.

Is CVE-2022-41340 in your software?

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

Check your SBOMs for free