CVE-2022-2111: Unrestricted Attachment Upload
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63114%
CWE
Published
6/17/2022
Updated
1/27/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| inventree | pip | < 0.7.2 | 0.7.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability combines two aspects: 1) Unrestricted file upload (CWE-434) allowing dangerous types, and 2) Improper handling of downloaded files leading to execution. The commit shows frontend JavaScript changes (sanitizeData) and admin resource modifications, but the critical fix would involve changing how attachments are served. The high-confidence entry reflects frontend link generation without download enforcement, while the medium-confidence entry addresses missing server-side headers. Without exact commit diffs, these are inferred from the described vulnerability pattern and solution strategy.