Skip to content
Fencer Vulns
medium 5.9

CVE-2022-48566 json

An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.1.

published 2023-08-22 3 y ago modified 2026-09-08 2 mo ago also BIT-libpython-2022-48566 , BIT-python-2022-48566 , BIT-python-min-2022-48566 , EUVD-2022-51262 , GHSA-cgfh-jp5w-8cmx

cvss
5.9
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 70%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami libpython 3.6.13, 3.7.10, 3.8.7, 3.9.1
  • bitnami python 3.6.13, 3.7.10, 3.8.7, 3.9.1
  • bitnami python-min 3.6.13, 3.7.10, 3.8.7, 3.9.1
  • python python 3.6.13, 3.7.10, 3.8.7, 3.9.1
  • pypy3 Debian 14, Debian 13, Debian 12 7.3.5+dfsg-2

debian advisories DEBIAN-CVE-2022-48566

  • python2.7 Ubuntu 20.04 LTS 2.7.18-1~20.04.7
  • python2.7 Ubuntu 22.04 LTS 2.7.18-13ubuntu1.5
  • python3.8 Ubuntu 20.04 LTS 3.8.10-0ubuntu1~20.04
  • python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm7
  • python2.7 Ubuntu Pro 18.04 LTS 2.7.17-1~18.04ubuntu1.13+esm2
  • python3.5 Ubuntu Pro 14.04 LTS 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
  • python3.5 Ubuntu Pro 16.04 LTS 3.5.2-2ubuntu0~16.04.13+esm11
  • python3.6 Ubuntu Pro 18.04 LTS 3.6.9-1~18.04ubuntu1.13+esm2

ubuntu advisories UBUNTU-CVE-2022-48566

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python36 SLES for SAP 12 SP5, SLES 12 SP5 3.6.15-55.1
  • python36-core SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 3.6.15-55.1
  • python3 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +15 more 3.6.15-150300.10.57.1
  • python3-core SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +16 more 3.6.15-150300.10.57.1
  • python3-documentation openSUSE Leap 15.5 3.6.15-150300.10.57.1
  • python3 SLE Micro 5.1 3.6.15-150000.3.138.1
  • python3-core SLE Micro 5.1 3.6.15-150000.3.138.1
  • python SLE Module for Package Hub 15 SP5, openSUSE Leap 15.5, openSUSE Leap 15.4 +2 more 2.7.18-150000.57.1

suse advisories SUSE-SU-2024:1847-1SUSE-SU-2024:0901-1SUSE-SU-2024:0464-1SUSE-SU-2023:4220-1SUSE-SU-2023:4001-1

  • python openSUSE Tumbleweed 2.7.18-39.1

opensuse advisories openSUSE-SU-2024:13253-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-48566 updated cvss 5.9

python: constant-time-defeating optimisations issue in the compare_digest function in Lib/hmac.p

  • Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 numpy, scipy, PyYAML, python2, python3, mod_wsgi, +88 more Red Hat Enterprise Linux 9 python3, python3.9, python3.11, python3-idle, python3-libs, python3-test, +6 more Red Hat Software Collections rh-python38-python, rh-python38-python-idle, rh-python38-python-libs, rh-python38-python-test, rh-python38-python-tkinter, rh-python38-python-rpm-macros, +1 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.30% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.python.org https://bugs.python.org/issue40791 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami libpython
<3.6.13
>=3.7.0, <3.7.10
>=3.8.0, <3.8.7
>=3.9.0, <3.9.1
3.6.13
3.7.10
3.8.7
3.9.1
bitnami python
<3.6.13
>=3.7.0, <3.7.10
>=3.8.0, <3.8.7
>=3.9.0, <3.9.1
3.6.13
3.7.10
3.8.7
3.9.1
bitnami python-min
<3.6.13
>=3.7.0, <3.7.10
>=3.8.0, <3.8.7
>=3.9.0, <3.9.1
3.6.13
3.7.10
3.8.7
3.9.1

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.