PyPI: python

CVE-2022-48560

Safety vulnerability ID: SFTY-20230822-52218

Safety legacy ID: pyup.io-60628

Python 3.6.11, 3.7.7 and 3.8.2 include a fix for CVE-2022-48560: Use After Free vulnerability via heappushpop in heapq. https://bugs.python.org/issue39421

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

Python 3.6.11, 3.7.7 and 3.8.2 include a fix for CVE-2022-48560: Use After Free vulnerability via heappushpop in heapq. https://bugs.python.org/issue39421

Advisory

Python 3.6.11, 3.7.7 and 3.8.2 include a fix for CVE-2022-48560: Use After Free vulnerability via heappushpop in heapq. https://bugs.python.org/issue39421

Affected Package

Affecting python package, versions
<3.6.11
>=3.7.0a1,<3.7.7
>=3.8.0a1,<3.8.2
>=3.9.0a1,<3.9.0a3

Also affects

---

How to Fix

Upgrade
python
to
3.6.11
3.7.7
3.8.2
3.9.0a3
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more