# CVE-2022-48560: CVE-2022-48560

Status: published. Published: 2023-08-22. Updated: 2026-11-02.

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

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: cve@mitre.org) — https://bugs.python.org/issue39421
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://bugs.python.org/issue39421

## Affected products and versions

- n/a / n/a: Version not specified (affected). Source: CNA: mitre
- Siemens / SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: ≥ V3.1.0; < V3.1.5 (affected, custom). Source: ADP: siemens-SADP
- Siemens / SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: ≥ V3.1.0; < V3.1.5 (affected, custom). Source: ADP: siemens-SADP
- Siemens / SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: ≥ V3.1.0; < V3.1.5 (affected, custom). Source: ADP: siemens-SADP

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.6.11",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.7.7",
            "versionStartIncluding": "3.7.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.8.2",
            "versionStartIncluding": "3.8.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:python:python:3.9.0:alpha1:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:python:python:3.9.0:alpha2:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- 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; source: NVD: nvd@nist.gov

- CISA KEV: No listing in collected sources

- EPSS: 2.04% as of 2026-11-02; percentile 81.16%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-416

## Exploit evidence

- exploit: https://bugs.python.org/issue39421 (cve@mitre.org)
- exploit: https://bugs.python.org/issue39421 (af854a3a-2127-422b-91ae-364da2661108)

## References

- https://bugs.python.org/issue39421 (CNA: mitre)

- https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html (CNA: mitre; mailing-list)

- https://security.netapp.com/advisory/ntap-20230929-0008/ (CNA: mitre)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html (CNA: mitre; mailing-list)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (CNA: mitre; vendor-advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (CNA: mitre; vendor-advisory)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (ADP: CVE)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (ADP: CVE)

- https://bugs.python.org/issue39421 (ADP: CVE; x_transferred)

- https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html (ADP: CVE; mailing-list, x_transferred)

- https://security.netapp.com/advisory/ntap-20230929-0008/ (ADP: CVE; x_transferred)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html (ADP: CVE; mailing-list, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (ADP: CVE; vendor-advisory, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (ADP: CVE; vendor-advisory, x_transferred)

- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (ADP: siemens-SADP)

- https://bugs.python.org/issue39421 (cve@mitre.org; Exploit, Issue Tracking, Patch, Vendor Advisory)

- https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html (cve@mitre.org; Mailing List, Third Party Advisory)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html (cve@mitre.org)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (cve@mitre.org)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (cve@mitre.org)

- https://security.netapp.com/advisory/ntap-20230929-0008/ (cve@mitre.org)

- https://bugs.python.org/issue39421 (af854a3a-2127-422b-91ae-364da2661108; Exploit, Issue Tracking, Patch, Vendor Advisory)

- https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Third Party Advisory)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00017.html (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZ5OOBWNYWXFTZDMCGHJVGDLDTHLWITJ/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VO7Y2YZSDK3UYJD2KBGLXRTGNG6T326J/ (af854a3a-2127-422b-91ae-364da2661108)

- https://security.netapp.com/advisory/ntap-20230929-0008/ (af854a3a-2127-422b-91ae-364da2661108)

- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (0b142b55-0307-4c5a-b3c9-f314f3fb7c5e)

## Provenance

- CNA: mitre: https://www.cve.org/CVERecord?id=CVE-2022-48560; retrieved 2026-11-02; source updated 2026-11-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-48560; retrieved 2026-11-03; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-48560; retrieved 2026-11-02; source updated Not reported

Revision: c94ed0d00d93c8ba8dac8f252971f3457e55e7c41d63ee7ada9924f10ae40767

Canonical: https://y2.dev/cve/CVE-2022-48560

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.