CVE-2022-29185

Observable Timing Discrepancy in totp-rs

MEDIUM
4.4
CVSS Score
Published: May 20, 2022 at 07:30 PM UTC
Updated: June 17, 2026 at 04:39 AM UTC
2 products affected across 2 vendorsTotp RsRs Project Totp Rs

Using totp-rs by constantoine?

Get instant alerts when new vulnerabilities affect totp-rs - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.4
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.1.0
Affected range stops below 1.1.0, so it looks safe — our inference, not a vendor statement
v < 1.1.0
Affected range stops below 1.1.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (3)

x_refsource_MISCIssue TrackingThird Party Advisory
https://github.com/constantoine/totp-rs/issues/13
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/constantoine/totp-rs/releases/tag/v1.1.0

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
HIGH
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-203CWE-208

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card