CVE-2022-45787: Apache James MIME4J vulnerable to information disclosure to local users
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00327%
CWE
Published
1/6/2023
Updated
11/15/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:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.james:apache-mime4j-storage | maven | < 0.8.9 | 0.8.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper temporary file permissions. The patch explicitly replaces File.createTempFile()
with Files.createTempFile()
, which has better permission controls. The original implementation's use of File.createTempFile()
created files with globally readable permissions (rw-r--r--), exposing sensitive data to local users. The function createStorageOutputStream
directly handled temp file creation with this vulnerable method.