cve.bz

CVE-2022-48560 Use After Free

7.5 highExploit referenceEPSS 2.0%Fix available

High (7.5). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

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

Severity

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
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-48560 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-48560?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-48560?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-48560 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonbefore 3.6.11
python:pythonfrom 3.7.0 before 3.7.7
python:pythonfrom 3.8.0 before 3.8.2
python:python3.9.0:alpha1
python:python3.9.0:alpha2
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10python2.72.7.16-2+deb10u3DLA-3575-1
Debian10python3.73.7.3-2+deb10u6DLA-3614-1
Debian11python2.72.7.18-8+deb11u1DEBIAN-CVE-2022-48560
Ubuntu20.04:LTSpython2.72.7.18-1~20.04.7UBUNTU-CVE-2022-48560 USN-7180-1
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.10USN-6891-1
Ubuntu22.04:LTSpython2.72.7.18-13ubuntu1.5UBUNTU-CVE-2022-48560 USN-7180-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.4USN-6891-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm17UBUNTU-CVE-2022-48560 USN-6394-2
UbuntuPro:14.04:LTSpython3.4no fix listedUBUNTU-CVE-2022-48560
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1UBUNTU-CVE-2022-48560 USN-6891-1
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm8UBUNTU-CVE-2022-48560 USN-6394-2
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm10UBUNTU-CVE-2022-48560 USN-6394-1 USN-6891-1
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm3UBUNTU-CVE-2022-48560 USN-6394-2
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm2UBUNTU-CVE-2022-48560 USN-6891-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm3UBUNTU-CVE-2022-48560 USN-6891-1
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamCython, python2-Cython, Cython-debugsource and 1 more0:0.28.1-7.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreamPyYAML, python2-pyyaml, PyYAML-debugsource and 1 more0:3.12-16.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreambabel, python2-babel0:2.5.1-10.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreamnumpy, python2-numpy, numpy-debugsource and 3 more1:1.14.2-16.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampytest, python2-pytest0:3.4.2-13.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python2-PyMySQL0:0.8.0-10.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-attrs, python2-attrs0:17.4.0-10.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-backports, python2-backports0:1.0-16.module+el8.9.0+18326+1b5baeeeRHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-backports-ssl_match_hostname, python2-backports-ssl_match_hostname0:3.5.0.1-12.module+el8.9.0+18326+1b5baeeeRHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-chardet, python2-chardet0:3.0.4-10.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-coverage, python2-coverage, python2-coverage-debuginfo and 1 more0:4.5.1-5.module+el8.9.0+19487+7dc18407RHSA-2024:2987
Red Hatenterprise_linux:8::appstreampython-dns, python2-dns0:1.15.0-10.module+el8.9.0+19487+7dc18407RHSA-2024:2987
36 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Package Hub 15 SP6python, python-base2.7.18-150000.65.1SUSE-SU-2024:1862-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python, python-doc, python-base2.7.18-33.32.1SUSE-SU-2024:1667-1
SUSELinux Enterprise Workstation Extension 12 SP5python-base2.7.18-33.32.1SUSE-SU-2024:1667-1
openSUSELeap 15.5, Leap 15.6python, python-doc, python-base2.7.18-150000.65.1SUSE-SU-2024:1862-1
openSUSETumbleweedpython2.7.18-41.1openSUSE-SU-2024:13488-1
AlmaLinux8babel, python2-babel2.5.1-10.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2, python2-libs, python2-test and 4 more2.7.18-17.module_el8.10.0+3783+2756348e.almaALSA-2024:2987
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+3162+01a09e5aALSA-2024:2987
AlmaLinux8python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-backports1.0-16.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-backports1.0-16.module_el8.6.0+3162+01a09e5aALSA-2024:2987
AlmaLinux8python2-backports-ssl_match_hostname3.5.0.1-12.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-bson, python2-pymongo, python2-pymongo-gridfs3.7.0-1.module_el8.6.0+2781+fed64c13ALSA-2024:2987
AlmaLinux8python2-bson, python2-pymongo, python2-pymongo-gridfs3.7.0-1.module_el8.6.0+3162+01a09e5aALSA-2024:2987
AlmaLinux8python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13ALSA-2024:2987
39 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.28.1-7.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8PyYAML0:3.12-16.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8babel0:2.5.1-10.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8numpy1:1.14.2-16.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8pytest0:3.4.2-13.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-PyMySQL0:0.8.0-10.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-attrs0:17.4.0-10.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-backports0:1.0-16.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-backports-ssl_match_hostname0:3.5.0.1-12.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-chardet0:3.0.4-10.module+el8.9.0+1531+a18208f5RLSA-2024:2987
Rocky Linux8python-coverage0:4.5.1-5.module+el8.10.0+1817+0b01df83RLSA-2024:2987
Rocky Linux8python-dns0:1.15.0-10.module+el8.9.0+1531+a18208f5RLSA-2024:2987
40 more for Rocky Linux in the JSON.
Azure Linux3python-pyno fix listedAZL-109647

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python3-0:3.6.8-56.el8_9.2Fixed 2024-01-10RHSA-2024:0114
Red Hat Enterprise Linux 8python27:2.7-8100020240208011952.5f0f67deFixed 2024-05-22RHSA-2024:2987
Red Hat Enterprise Linux 8.6 Extended Update Supportpython3-0:3.6.8-47.el8_6.4Fixed 2024-01-25RHSA-2024:0430
Red Hat Enterprise Linux 8.8 Extended Update Supportpython3-0:3.6.8-51.el8_8.4Fixed 2024-01-30RHSA-2024:0586
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7pythonOut of support scope
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8gimp:flatpak/python2Affected
Red Hat Enterprise Linux 8inkscape:flatpak/python2Will not fix
Red Hat Enterprise Linux 8python3.11Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python39:3.9/python39Not affected
Red Hat Enterprise Linux 9python3.11Not affected
Red Hat Enterprise Linux 9python3.9Not affected
Red Hat Software Collectionsrh-python38-pythonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-48560.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON