CVE-2020-29582:
Incorrect Default Permissions in JetBrains Kotlin
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.0014%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jetbrains.kotlin:kotlin-stdlib | maven | <= 1.4.20 | 1.4.21 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Kotlin's temporary file/directory creation functions using Java's File.createTempFile
API which has insecure default permissions. The patches explicitly deprecate these functions (createTempDir
and createTempFile
) in Utils.kt
, noting their permission issues. Runtime profiling would show these functions when vulnerable code creates temporary resources. The functions are fully qualified as kotlin.io.createTempDir
and kotlin.io.createTempFile
based on their package structure visible in the file path.