CVE-2022-23315: Arbitrary file upload in Mingsoft MCMS
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69676%
CWE
Published
1/22/2022
Updated
8/3/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| net.mingsoft:ms-mcms | maven | <= 5.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the template file write functionality demonstrated in the Gitee issue. The controller endpoint receives a fileName and fileContent parameter, then writes to the filesystem without: 1) validating file extensions, 2) sanitizing path traversal sequences, or 3) restricting the write location to a safe directory. This matches the CWE-434 pattern where user-controlled filenames are used directly in file operations. The reproduction evidence showing successful directory traversal via ../ confirms the lack of path sanitization in the write() function.