CVE-2022-29185
Observable Timing Discrepancy in totp-rs
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
totp-rs is a Rust library that permits the creation of 2FA authentification tokens per time-based one-time password (TOTP). Prior to version 1.1.0, token comparison was not constant time, and could theorically be used to guess value of an TOTP token, and thus reuse it in the same time window. The attacker would have to know the password beforehand nonetheless. Starting with patched version 1.1.0, the library uses constant-time comparison. There are currently no known workarounds.
Timeline
ID reserved
By GitHub_M
- 37 days later
· 37 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVDNVD · Modified | 3.1 | Medium4.4 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.86% · top 41% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.2.
Weakness
Affected products
- affected <1.1.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.iototp-rsGHSA-8vxv-2g8p-2249 (opens in a new tab)
References (3)
- https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/constantoine/totp-rs/issues/13 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/constantoine/totp-rs/releases/tag/v1.1.0 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8vxv-2g8p-2249 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-29185)Record last updated .