{"id":"CVE-2026-15310","state":"PUBLISHED","title":"zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits","description":"When decompressing crafted zip files using the bzip/LZMA/Zstandard \n\ncompressions, Python could use an attacker-controlled size to \n\npre-allocate memory, possibly resulting in memory exhaustion.","publishedAt":"2026-08-25T15:07:58.054Z","updatedAt":"2026-10-02T00:39:36.038Z","severity":{"score":2.1,"label":"Low","version":"4.0","vector":"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","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.22","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.17","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.15","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.16","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.8","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/pull/156003","https://github.com/python/cpython/issues/156002","https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/","https://github.com/python/cpython/commit/f897dbf2f36a5935700b7c2d94d4681d2136b7d4","https://github.com/python/cpython/commit/1b424c0178a01e155fd0267dc28a8fc1159b33a8","https://github.com/python/cpython/commit/31980e84b9a708424a0a1dfecde3fc991e313f89","https://github.com/python/cpython/commit/e2311cfb3dd518f008f312fe0631f4f7490d237a","https://github.com/python/cpython/commit/f507e6946a3194e83e1d7b8ee6e14567175e46de","https://github.com/python/cpython/commit/9d167992b59cf5e23c66b9ed742b13f5925f7d70","https://github.com/python/cpython/commit/dcdd406ddbfc4cb29b24c3df17cbabe21d316ce1","https://github.com/python/cpython/commit/09a2e7e6678b4f65449e7ad8f112c48f944591e2","https://github.com/python/cpython/commit/6257029de42ef89b67f3d20137de87d43e197530","https://github.com/python/cpython/commit/c2bfbcdd1a11690507a10bc0998f95b8dc6b6fac"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/15xxx/CVE-2026-15310.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-15310","state":"PUBLISHED","datePublished":"2026-08-25T15:07:58.054Z","dateUpdated":"2026-10-02T00:39:36.038Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2026-07-09T17:39:12.652Z"},"containers":{"cna":{"title":"zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits","descriptions":[{"lang":"en","value":"When decompressing crafted zip files using the bzip/LZMA/Zstandard \n\ncompressions, Python could use an attacker-controlled size to \n\npre-allocate memory, possibly resulting in memory exhaustion."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.22","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.17","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.15","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.16","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.8","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://github.com/python/cpython/pull/156003","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/156002","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/f897dbf2f36a5935700b7c2d94d4681d2136b7d4","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/1b424c0178a01e155fd0267dc28a8fc1159b33a8","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/31980e84b9a708424a0a1dfecde3fc991e313f89","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/e2311cfb3dd518f008f312fe0631f4f7490d237a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f507e6946a3194e83e1d7b8ee6e14567175e46de","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/9d167992b59cf5e23c66b9ed742b13f5925f7d70","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/dcdd406ddbfc4cb29b24c3df17cbabe21d316ce1","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/09a2e7e6678b4f65449e7ad8f112c48f944591e2","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/6257029de42ef89b67f3d20137de87d43e197530","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/c2bfbcdd1a11690507a10bc0998f95b8dc6b6fac","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.1,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"CWE-400","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-10-02T00:39:36.038Z"},"credits":[{"lang":"en","type":"reporter","value":"tonghuaroot (童话) (https://github.com/tonghuaroot)"},{"lang":"en","type":"coordinator","value":"Petr Viktorin (https://github.com/encukou)"},{"lang":"en","type":"remediation reviewer","value":"William Woodruff (https://github.com/woodruffw)"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-15310","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-08-25T15:34:06.442859Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-25T17:43:24.947Z"}}]}}}