CVE-2022-29637: Arbitrary command execution in Minidoc
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52454%
CWE
Published
5/27/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/mindoc-org/mindoc | go | <= 2.1-beta.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of ZIP
file extraction in ziptil.go
, as explicitly referenced in the GitHub issue. The attack vector involves crafting ZIP
files with path traversal sequences, which would be processed by the ZIP
extraction logic. The function responsible for writing extracted files (likely ExtractOrCreateFile
) fails to validate/sanitize file paths, allowing attackers to write arbitrary files to any location. This matches the CWE-434 pattern and the described exploit mechanism.