CVE-2023-33695: Insecure Temporary File in HuTool
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.05342%
CWE
Published
6/13/2023
Updated
11/10/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| cn.hutool:hutool-core | maven | < 5.8.19 | 5.8.19 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the use of File.createTempFile() in FileUtil.createTempFile. This method creates temporary files with predictable names and default permissions that may be accessible to other users (CWE-377, CWE-732). The patch replaced this with PathUtil.createTempFile(), which uses Files.createTempFile() with safer permissions. The commit diff explicitly shows the removal of File.createTempFile() in favor of a more secure alternative, confirming this as the root cause.