CVE-2024-39134

7.5 HIGH

📋 TL;DR

A stack buffer overflow vulnerability in zziplib version 0.13.77 allows attackers to cause denial of service by exploiting the __zzip_fetch_disk_trailer() function. This affects any application that uses this library to process ZIP archives, potentially crashing the application or allowing arbitrary code execution.

💻 Affected Systems

Products:
  • zziplib
Versions: 0.13.77
Operating Systems: All platforms where zziplib is used
Default Config Vulnerable: ⚠️ Yes
Notes: Any application linking against vulnerable zziplib versions is affected when processing ZIP archives.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise if the overflow can be controlled to execute arbitrary code.

🟠

Likely Case

Denial of service causing application crashes when processing malicious ZIP files.

🟢

If Mitigated

Application crash without code execution if stack protections are enabled.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires crafting a malicious ZIP file that triggers the buffer overflow in the trailer parsing function.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.13.78 or later

Vendor Advisory: https://github.com/gdraheim/zziplib/issues/165

Restart Required: Yes

Instructions:

1. Update zziplib to version 0.13.78 or later. 2. Recompile any applications using zziplib. 3. Restart affected services.

🔧 Temporary Workarounds

Disable ZIP processing

all

Temporarily disable ZIP archive processing in applications using zziplib

Input validation

all

Implement strict validation of ZIP files before passing to zziplib

🧯 If You Can't Patch

  • Implement network segmentation to limit access to affected systems
  • Deploy application-level firewalls to block malicious ZIP files

🔍 How to Verify

Check if Vulnerable:

Check zziplib version: dpkg -l | grep zziplib or rpm -qa | grep zziplib

Check Version:

zziplib-config --version 2>/dev/null || echo 'zziplib not found'

Verify Fix Applied:

Verify version is 0.13.78 or later using package manager commands

📡 Detection & Monitoring

Log Indicators:

  • Application crashes with segmentation faults
  • Memory corruption errors in system logs

Network Indicators:

  • Unusual ZIP file transfers to affected systems

SIEM Query:

source="application.log" AND ("segmentation fault" OR "buffer overflow") AND process="*zziplib*"

🔗 References

📤 Share & Export