Heap-based buffer overflow in zziplib

zziplib Updated 02 Oct 2025

Summary

20/06/2017
N/A
Yes i
Unrated
Not published

DLA-994-1: zziplib - security update. Affects zziplib versions < 0.13.56-1.1+deb7u1. Fixed in 0.13.56-1.1+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

zziplib is a library for reading and writing ZIP archives. It provides functions for extracting files from ZIP archives and creating new ZIP archives. The library is widely used in various applications that handle ZIP files. However, zziplib is vulnerable to a heap-based buffer overflow, which can be exploited by remote attackers to cause a denial of service (crash) by sending a crafted ZIP file.

Vulnerability Detail

The vulnerability in zziplib is caused by several heap-based buffer overflows in different functions within the library. These overflows can be triggered by processing a specially crafted ZIP file. By exploiting these vulnerabilities, remote attackers can cause a denial of service by crashing the application that uses zziplib. The specific functions affected by the buffer overflows are __zzip_get32, __zzip_get64, zzip_mem_entry_extra_block, zzip_mem_entry_new, prescan_entry, and seeko. Each of these functions can be exploited to crash the application in different ways, such as through a NULL pointer dereference or an assertion failure.

How To Fix

Minimum fixed version

0.13.56-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade zziplib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

zziplib is vulnerable to heap-based buffer overflows that can be exploited by remote attackers to cause a denial of service. It is crucial to update to the latest version of zziplib (0.13.56-1.1+deb7u1) to mitigate these vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for zziplib →

Share this vulnerability

FAQ

zziplib is a library for reading and writing ZIP archives. It provides functions for extracting files from ZIP archives and creating new ZIP archives.

A heap-based buffer overflow is a type of vulnerability where a program writes more data into a buffer in the heap memory than it can hold. This can lead to memory corruption and can be exploited by attackers to execute arbitrary code or crash the program.

The zziplib vulnerabilities can be exploited by sending a specially crafted ZIP file to an application that uses the zziplib library. By triggering the heap-based buffer overflows in the library, remote attackers can cause a denial of service by crashing the application.

The impact of these vulnerabilities is a denial of service, as the application using the zziplib library will crash when processing the specially crafted ZIP file. This can lead to disruption of service and potential data loss.

To protect your application from these vulnerabilities, it is recommended to upgrade to the latest version of zziplib (0.13.56-1.1+deb7u1). This version includes patches that fix the heap-based buffer overflows. Additionally, it is important to keep your software and libraries up to date and follow secure coding practices to minimize the risk of vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for zziplib.

How To Fix

Minimum fixed version

0.13.56-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade zziplib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback