CVE-2022-35410:
mat2 before 0.13.0 allows directory traversal during the ZIP archive cleaning process.
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
7/12/2022
Updated
9/30/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mat2 | pip | >= 0, < 0.13.0 | 0.13.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path sanitization in ZIP processing. The key functions would be in the ZIP cleaner module handling filenames:
- _sanitize_filename would directly process entry names (vulnerable to '../' injection)
- clean() would be the main workflow that failed to validate paths before extraction Commit beebca4b's description of adding path normalization matches these functional areas. The web instance impact aligns with these functions being called during archive processing.