Observable Timing Discrepancy in totp-rs
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-203.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| constantoine | totp-rs | before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | totp-rs (crates.io) | before 1.1.0 | 1.1.0 | Patch available | GHSA-8vxv-2g8p-2249 |
- totp-rs Vendorconstantoine Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
- totp-rs (crates.io) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-8vxv-2g8p-2249
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:totp-rs_project:totp-rs:*:*:*:*:*:rust:*:* | before 1.1.0 | Vulnerable | Totp-rs Project |
- cpe:2.3:a:totp-rs_project:totp-rs:*:*:*:*:*:rust:*:* Versions before 1.1.0 Vulnerable ·Totp-rs Project
Remediation
- Fix · CNA totp-rs (constantoine) Fixed in 1.1.0
- Fix · GHSA-8vxv-2g8p-2249 totp-rs (crates.io) Fixed in 1.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-29185
- 2026-10-03 Alias added: GHSA-8vxv-2g8p-2249
References
Advisory 4
Sources
- CVE-2022-29185 · CVE Program
- CVE-2022-29185 · NVD
- FIRST EPSS
- GHSA-8vxv-2g8p-2249 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences