Miggo Logo

CVE-2022-26049: Goomph before 3.37.2 allows malicious zip file to write contents to arbitrary locations

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.64131%
Published
9/12/2022
Updated
1/28/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.diffplug.gradle:goomphmaven< 3.37.23.37.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The GitHub commit 25f04f6 shows a security fix in ZipMisc.java where a path validation check was added during zip extraction. The vulnerability description explicitly mentions zip file extraction as the attack vector, and the CWE-22 classification confirms path traversal. The added code in the unzip function validates normalized paths to prevent directory escape, indicating this was the vulnerable function prior to the patch.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T*is *****ts t** p**k*** *om.*i**plu*.*r**l*:*oomp* ***or* *.**.*. It *llows * m*li*ious zip *il* to pot*nti*lly *r**k out o* t** *xp**t** **stin*tion *ir**tory, writin* *ont*nts into *r*itr*ry lo**tions on t** *il* syst*m. Ov*rwritin* **rt*in *il*s/

Reasoning

T** *it*u* *ommit ******* s*ows * s**urity *ix in ZipMis*.j*v* w**r* * p*t* v*li**tion ****k w*s ***** *urin* zip *xtr**tion. T** vuln*r**ility **s*ription *xpli*itly m*ntions zip *il* *xtr**tion *s t** *tt**k v**tor, *n* t** *W*-** *l*ssi*i**tion *o