# CVE-2022-48560: Use-after-free in heappushpop() of heapq module

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.04%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-22T00:00:00.000Z
- Modified: 2026-11-02T23:17:12.167Z
- Also known as: PSF-2023-11, BIT-LIBPYTHON-2022-48560, BIT-PYTHON-2022-48560, BIT-PYTHON-MIN-2022-48560, GHSA-pvw5-cvp6-cv92
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

A use-after-free exists in Python through 3.9 via heappushpop in heapq.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/python/cpython: before 79f89e6e5a659846d1068e8b1bd8e491ccdef861; before 958064f8d2b84062b0582bbae911df8ccfc11fd6; before 993811ffe75c2573f97fb3fd1414b34609b8c8db; before c563f409ea30bcb0623d785428c9257917371b76
- python python: before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2; 3.9.0
- debian debian_linux: 10.0
- libpython (Bitnami): before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2
- python (Bitnami): before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2
- python-min (Bitnami): before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.python.org/issue39421> (exploit, advisory, issue-tracking, patch, report, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html> (advisory, mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20230929-0008/> (web)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://www.cve.org/CVERecord?id=CVE-2022-48560> (advisory)
- <https://github.com/python/cpython/pull/18118> (fix)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-48560> (web)

## Sources

- CVE List: [CVE-2022-48560](https://www.cve.org/CVERecord?id=CVE-2022-48560), CVE Terms of Use, modified 2026-11-02
- Python Software Foundation: [PSF-2023-11](https://osv.dev/vulnerability/PSF-2023-11), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2022-48560](https://nvd.nist.gov/vuln/detail/CVE-2022-48560), Public domain, modified 2026-11-02
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2022-48560](https://osv.dev/vulnerability/BIT-LIBPYTHON-2022-48560), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2022-48560](https://osv.dev/vulnerability/BIT-PYTHON-2022-48560), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2022-48560](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2022-48560), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-48560 · Whole record: https://cve.day/CVE-2022-48560.json · Rebuilt by cve.day 2026-11-25T22:58:19.579Z
