Vulnerability · Published May 5, 2022 · Assigned by GitHub_M

CVE-2022-24884Trivial signature forgery in ecdsautils

Critical 10.0

In plain English

A critical-severity security flaw in ecdsautils from freifunk-gluon. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)1.0%top 35.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

ecdsautils is a tiny collection of programs used for ECDSA (keygen, sign, verify). `ecdsa_verify_[prepare_]legacy()` does not check whether the signature values `r` and `s` are non-zero. A signature consisting only of zeroes is always considered valid, making it trivial to forge signatures. Requiring multiple signatures from different public keys does not mitigate the issue: `ecdsa_verify_list_legacy()` will accept an arbitrary number of such forged signatures. Both the `ecdsautil verify` CLI command and the libecdsautil library are affected. The issue has been fixed in ecdsautils 0.4.1. All older versions of ecdsautils (including versions before the split into a library and a CLI utility) are vulnerable.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ecdsautils0.4.1-1DEBIAN-CVE-2022-24884
Debian:13ecdsautils0.4.1-1DEBIAN-CVE-2022-24884
Debian:14ecdsautils0.4.1-1DEBIAN-CVE-2022-24884
Ubuntu:22.04:LTSecdsautils0.3.2+git20151018-2+deb10u1build0.22.04.1USN-6239-1
Ubuntu:22.04:LTSecdsautils0.3.2+git20151018-2+deb10u1build0.22.04.1UBUNTU-CVE-2022-24884

Affected products (as reported)

VendorProductVersions
freifunk-gluon ecdsautils < 0.4.1

Weakness: CWE-347 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

References