All reports
Medium

hmac.compare_digest() accumulator not constant-time

Affected versions

Pythoncpython
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-48566

Probability of exploitation in the next 30 days: 1.30%

FIRST EPSS · 2026-11-20

Description

An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.1. Constant-time-defeating optimisations were possible in the accumulator variable in hmac.compare_digest.

Links