---
id: "CVE-2023-45853"
page: "https://infrastack.ai/live/CVE-2023-45853"
kind: "vulnerability"
aliases: ["CVE-2023-45853", "GHSA-mq29-j5xf-cjwr"]
title: "pyminizip affected by zlib's integer overflow/heap based buffer overflow vulnerability due to vulnerable dependency"
severity: "critical"
cvss: 9.8
epss: 0.03448
exploited: false
status: "open"
category: "package"
products: [{"name": "pyminizip", "fixed": [], "affected": "<= 0.2.6", "ecosystem": "pypi"}, {"name": "zlib", "fixed": ["1.3.1"], "affected": "< 1.3.1", "ecosystem": "vendor"}, {"name": "smihica pyminizip", "fixed": [], "affected": "<= 0.2.6", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-190", "package", "pyminizip", "python"]
not_affected_if: ["not-using-pyminizip", "untrusted-input"]
published_at: "2023-10-14T02:15:09+00:00"
first_seen_at: "2026-11-16T16:08:25+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-mq29-j5xf-cjwr", "first_seen_at": "2026-11-16T16:08:25+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-45853", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.03448, "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-45853"}]
---

# pyminizip affected by zlib's integer overflow/heap based buffer overflow vulnerability due to vulnerable dependency

Link for people: https://infrastack.ai/live/CVE-2023-45853 (this .md is for agents)

pyminizip bundles MiniZip code from zlib 1.2.11, which has an integer overflow in zipOpenNewFileInZip4_64 when a file name, comment, or extra field is very long. The overflow leads to a heap-based buffer overflow that can crash or potentially run attacker-supplied code.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pyminizip affected <= 0.2.6 fixed no fixed version listed
- vendor:zlib affected < 1.3.1 fixed 1.3.1
- vendor:smihica pyminizip affected <= 0.2.6 fixed no fixed version listed

## How to check

- Run `pip show pyminizip` to see the installed version, and check whether it is `0.2.6` or older.
- Check whether your code builds zip archives from untrusted file names, comments, or extra fields.

## Fix

- pyminizip: no fixed version is listed in the product data (fixed ?); the sources do not state one.

## Timeline

- 2026-11-16T16:08:25+00:00 ghsa https://github.com/advisories/GHSA-mq29-j5xf-cjwr
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2023-45853

## Documents

- [advisory] Third-party advisory: lists.debian.org https://lists.debian.org/debian-lts-announce/2023/11/msg00026.html
- [advisory] Third-party advisory: security.gentoo.org https://security.gentoo.org/glsa/202401-18
- [advisory] Third-party advisory: security.netapp.com https://security.netapp.com/advisory/ntap-20231130-0009/
- [fix] Patch: chromium.googlesource.com https://chromium.googlesource.com/chromium/src/+/d709fb23806858847131027da95ef4c548813356
- [fix] Release notes: pypi.org https://pypi.org/project/pyminizip/#history
- [fix] Patch: chromium.googlesource.com https://chromium.googlesource.com/chromium/src/+/de29dd6c7151d3cd37cb4cf0036800ddfb1d8b61
- [fix] Patch: github.com https://github.com/madler/zlib/pull/843

## From the sources

MiniZip in zlib through 1.3 has an integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_64 via a long filename, comment, or extra field. NOTE: MiniZip is not a supported part of the zlib product. NOTE: pyminizip through 0.2.6 is also vulnerable because it bundles an affected zlib version, and exposes the applicable MiniZip code through its compress API.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
