CVE-2026-80189
Received Received - Intake

LeafWiki ZIP Archive Path Traversal Vulnerability

Vulnerability report for CVE-2026-80189, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-26

Last updated on: 2026-08-26

Assigner: VulnCheck

Description

LeafWiki extracts an uploaded ZIP archive without limiting how much data it will write. ZipExtractor.ExtractToDir in internal/importer/zip_extractor.go opens each entry and copies it to the destination with io.Copy, which runs to the end of the decompressed stream, so only the size of the uploaded archive is bounded and the size it expands to is not. The import route that reaches this code requires the Editor or Admin role, and the upload itself is capped at 500 MiB compressed. Because a ZIP entry can compress at a very high ratio, an archive well inside that cap can expand to hundreds of gigabytes as it is written out. The extraction directory defaults to a location under the operating system temporary directory, so the written data consumes the disk backing that path, which on a tmpfs-backed temporary directory is memory. A user holding the Editor role can therefore exhaust the storage the service depends on and keep it from serving, using far more resource than the upload limit alone would permit.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-26
Last Modified
2026-08-26
Generated
2026-08-26
AI Q&A
2026-08-26
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
leafwiki leafwiki *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-409 The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves a ZIP archive extraction flaw in LeafWiki where the system does not limit the size of decompressed data. A user with Editor or Admin privileges can upload a ZIP file that, when extracted, expands to hundreds of gigabytes even if the original file is under 500 MiB. This exhausts disk storage, including memory if the temporary directory is tmpfs-backed, disrupting service availability.

Detection Guidance

Monitor disk usage in the temporary directory where LeafWiki extracts ZIP files. Check for unusually large files or rapid disk space consumption. Review logs for failed imports or service crashes due to storage exhaustion.

Impact Analysis

If you use LeafWiki, an attacker with Editor or Admin access could upload a specially crafted ZIP file to consume all available disk storage or memory. This could crash the service, prevent users from accessing it, or cause data loss if critical operations fail due to resource exhaustion.

Mitigation Strategies

Limit the size of extracted ZIP files by implementing a size cap during extraction. Restrict the Editor role's ability to upload large archives. Monitor disk space on the temporary directory path and set up alerts for abnormal usage.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-80189. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart