CVE-2024-42461

In the Elliptic package 6.5.6 for Node.js, ECDSA signature malleability occurs because BER-encoded signatures are allowed

Medium · published August 2, 2024

CVSS v3.1
5.3
EPSS
1%
Percentile
48.9
In the wild
Unconfirmed
What it is

⚠️ A twist in the signature game! The Elliptic package 6.5.6 for Node.js has a sneaky issue with ECDSA signature malleability due to BER-encoded signatures being allowed. 😲 Think of an ECDSA signature like a unique receipt for a package delivery. If the delivery service allows different receipt formats, a crafty person could change the appearance of the receipt while keeping the same package details, causing confusion and potential fraud. This means an attacker could potentially create altered versions of valid signatures, which could lead to unauthorized actions if exploited cleverly. While this isn't an outright breach, the implications could erode trust or cause inconsistencies in transaction verification.

Put simply

Think of an ECDSA signature like a unique receipt for a package delivery. If the delivery service allows different receipt formats, a crafty person could change the appearance of the receipt while keeping the same package details, causing confusion and potential fraud. The vulnerability arises because the Elliptic package permits BER-encoded signatures, which are malleable, allowing the same signature to be represented in different ways without changing its validity.

What to do

This means an attacker could potentially create altered versions of valid signatures, which could lead to unauthorized actions if exploited cleverly. While this isn't an outright breach, the implications could erode trust or cause inconsistencies in transaction verification. To fix this, upgrade the Elliptic package to version 6.5.7 or later, where this issue has been addressed. Additionally, review existing implementations to ensure they securely handle signature verification without relying on malleable formats. You've got this! Stay vigilant and keep your code secure! 🛡️

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00617 · 48.9th percentile
Published
2024-08-02T00:00Z
EPSS history
Timeline
  • 02 AUG 00:00Z
    In the Elliptic package 6.5.6 for Node.js, ECDSA signature malleability occurs because BER-encoded signatures are allowed
    cvelistv5