---
id: CVE-2026-15310
title: |-
  When decompressing crafted zip files using the bzip/LZMA/Zstandard 

  compressions, Python could use an attacker-controlled size to 

  pre-allocate memory, possibly resulting in memory exhaustion.
summary: |-
  When decompressing crafted zip files using the bzip/LZMA/Zstandard 

  compressions, Python could use an attacker-controlled size to 

  pre-allocate memory, possibly resulting in memory exhaustion.
severity: low
cvss: 2.1
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'
cwe:
  - CWE-400
  - CWE-770
vendor: Python Software Foundation
product: CPython
affected:
  - CPython < 3.12.15
  - CPython >= 3.13.0 < 3.13.16
  - CPython >= 3.14.0 < 3.14.8
  - CPython >= 3.15.0a1 < 3.15.0rc2
published: '2026-08-25'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T01:16:43.337'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-15310'
references:
  - url: >-
      https://github.com/python/cpython/commit/09a2e7e6678b4f65449e7ad8f112c48f944591e2
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/1b424c0178a01e155fd0267dc28a8fc1159b33a8
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/31980e84b9a708424a0a1dfecde3fc991e313f89
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/6257029de42ef89b67f3d20137de87d43e197530
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/9d167992b59cf5e23c66b9ed742b13f5925f7d70
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/c2bfbcdd1a11690507a10bc0998f95b8dc6b6fac
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/dcdd406ddbfc4cb29b24c3df17cbabe21d316ce1
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/e2311cfb3dd518f008f312fe0631f4f7490d237a
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/f507e6946a3194e83e1d7b8ee6e14567175e46de
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/f897dbf2f36a5935700b7c2d94d4681d2136b7d4
    label: cna@python.org
  - url: 'https://github.com/python/cpython/issues/156002'
    label: cna@python.org
  - url: 'https://github.com/python/cpython/pull/156003'
    label: cna@python.org
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/
    label: cna@python.org
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-15310.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-15310'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2523543'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-15310'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-15310'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65505'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65513'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65525'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65531'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65567'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00526
epssPercentile: 0.44366
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-25T15:34:06.442859Z'
cvssSource: cna
ingestedAt: '2026-09-11T16:45:47.927Z'
patched:
  - hardened_images
scores:
  cna: 2.1
  vendor: 6.5
---

## Overview

When decompressing crafted zip files using the bzip/LZMA/Zstandard 

compressions, Python could use an attacker-controlled size to 

pre-allocate memory, possibly resulting in memory exhaustion.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:65505** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65505)
- **RHSA-2026:65513** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65513)
- **RHSA-2026:65525** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65525)
- **RHSA-2026:65531** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65531)
- **RHSA-2026:65567** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65567)
