CVE-2022-48566
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.
02 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.
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 1.30% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 69.8% of scored records. A rank, not a probability.
- NVD base score
- 5.9 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-08-22 00:00Z3 YR AGO
- Last updated
- 2024-10-03 14:08Z2 YR AGO
- Reserved
- 2023-07-23
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')Class
- Data version
- 5.1
- Document digest
- e208cd955d6b620e188e030be503746bcc66ee087fbbfe7abd5e31a013eeca4b
05 Affected products
06 References
- bugs.python.orghttps://bugs.python.org/issue40791
- lists.debian.org[debian-lts-announce] 20230920 [SECURITY] [DLA 3575-1] python2.7 security updatehttps://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20231006-0013/
- lists.debian.org[debian-lts-announce] 20231011 [SECURITY] [DLA 3614-1] python3.7 security updatehttps://lists.debian.org/debian-lts-announce/2023/10/msg00017.html
07 Fixed in
Debian 12
- pypy3 Fixed in 7.3.5+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- pypy3 Fixed in 7.3.5+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- pypy3 Fixed in 7.3.5+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- python2.7 Fixed in 2.7.18-1~20.04.7
- python3.8 Fixed in 3.8.10-0ubuntu1~20.04
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- python2.7 Fixed in 2.7.18-13ubuntu1.5
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python2.7 No fix yet
- python3.4 No fix yet
- python3.5 Fixed in 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- python2.7 Fixed in 2.7.12-1ubuntu0~16.04.18+esm7Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- python3.5 Fixed in 3.5.2-2ubuntu0~16.04.13+esm11Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- python2.7 Fixed in 2.7.17-1~18.04ubuntu1.13+esm2Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- python3.6 Fixed in 3.6.9-1~18.04ubuntu1.13+esm2Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- python3.7 Fixed in 3.7.5-2ubuntu1~18.04.2+esm3Available with Ubuntu Pro: https://ubuntu.com/pro
- python3.8 Fixed in 3.8.0-3ubuntu1~18.04.2+esm2Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.