CVE-2022-26850: Insufficiently Protected Credentials via Insecure Temporary File in org.apache.nifi:nifi-single-user-utils
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.72388%
CWE
Published
6/20/2022
Updated
8/17/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.nifi:nifi-single-user-utils | maven | <= 1.15.3 | 1.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the use of File.createTempFile() in writeLoginCredentials, which creates a file in the system temp directory with insecure permissions. The credentials were written to this temporary file (lines 85-95) before being moved, leaving a window where other users could read them. The commit diff shows the patched version eliminated the temp file creation, confirming this was the vulnerable code path.