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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ecdsautils | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
| Debian:13 | ecdsautils | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
| Debian:14 | ecdsautils | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
| Ubuntu:22.04:LTS | ecdsautils | 0.3.2+git20151018-2+deb10u1build0.22.04.1 | USN-6239-1 |
| Ubuntu:22.04:LTS | ecdsautils | 0.3.2+git20151018-2+deb10u1build0.22.04.1 | UBUNTU-CVE-2022-24884 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/freifunk-gluon/ecdsautils/security/advisories/GHSA-qhcg-9ffp-78pw x_refsource_CONFIRM
- https://github.com/freifunk-gluon/ecdsautils/commit/1d4b091abdf15ad7b2312535b5b95ad70f6dbd08 x_refsource_MISC
- https://github.com/freifunk-gluon/ecdsautils/commit/39b6d0a77414fd41614953a0e185c4eefa2f88ad x_refsource_MISC
- [debian-lts-announce] 20220507 [SECURITY] [DLA 2997-1] ecdsautils security update mailing-list, x_refsource_MLIST
- DSA-5132 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2022-111177a5ac vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-7704d5e885 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-bf58612696 vendor-advisory, x_refsource_FEDORA