CVE-2022-24884Trivial signature forgery in ecdsautils
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | ecdsautils | Fixed | 0.3.2+git20151018-2+deb10u1build0.22.04.1 | UBUNTU-CVE-2022-24884 |
| Ubuntu 20.04 | ecdsautils | Fixed | 0.3.2+git20151018-2+deb10u1build0.20.04.1 | UBUNTU-CVE-2022-24884 |
| Ubuntu 18.04 | ecdsautils | Fix pending | 0.3.2+git20151018-2ubuntu0.18.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-24884 |
| Ubuntu 16.04 | ecdsautils | Fix pending | 0.3.2+git20151018-2ubuntu0.16.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-24884 |
| Debian 14 | ecdsautils | Fixed | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
| Debian 13 | ecdsautils | Fixed | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
| Debian 12 | ecdsautils | Fixed | 0.4.1-1 | DEBIAN-CVE-2022-24884 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- freifunk-gluon ecdsautils: affected: < 0.4.1
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5132 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/freifunk-gluon/ecdsautils/security/advisories/GHSA-qhcg-9ffp-78pw
- https://github.com/freifunk-gluon/ecdsautils/commit/1d4b091abdf15ad7b2312535b5b95ad70f6dbd08
- https://github.com/freifunk-gluon/ecdsautils/commit/39b6d0a77414fd41614953a0e185c4eefa2f88ad
- https://lists.debian.org/debian-lts-announce/2022/05/msg00007.html
- https://www.debian.org/security/2022/dsa-5132
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2JT57AAFIEL7JDO2ZBV25JKYME5NU54/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7UBR3M4U3LA46BHXYSH7EN5GDG44GK7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4AKQH5WCBMJA3ODCSNERY6HVX4BX3ITG/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.