# CVE-2020-29582: Incorrect Default Permissions in JetBrains Kotlin

> CVE-2020-29582 (GitHub advisory GHSA-cqj8-47ch-rvvq) is a medium-severity vulnerability with a CVSS 3.1 base score of 5.3, classed as Incorrect Default Permissions (CWE-276), in org.jetbrains.kotlin:kotlin-stdlib (Maven). Affected versions: <= 1.4.20. It is fixed in 1.4.21.

Canonical page: https://cveminer.com/vulnerabilities/CVE-2020-29582

| Field | Value |
| --- | --- |
| CVE | CVE-2020-29582 |
| GHSA | GHSA-cqj8-47ch-rvvq |
| Severity | Medium |
| CVSS 3.1 | 5.3 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N` (GitHub Advisory Database) |
| CWE | CWE-276 Incorrect Default Permissions |
| EPSS | 2.57% (higher than 84% of CVEs) |
| CISA KEV | Not listed |
| Published | 3 Feb 2021 |
| Modified | 4 Aug 2024 |

## Description

In JetBrains Kotlin before 1.4.21, a vulnerable Java API was used for temporary file and folder creation. An attacker was able to read data from such files and list directories due to insecure permissions.

## Affected packages

| Package | Ecosystem | PURL | Vulnerable versions | Fixed in |
| --- | --- | --- | --- | --- |
| org.jetbrains.kotlin:kotlin-stdlib | Maven | `pkg:maven/org.jetbrains.kotlin/kotlin-stdlib` | <= 1.4.20 | 1.4.21 |

## Questions

**What is the GHSA ID for CVE-2020-29582?**

GitHub tracks CVE-2020-29582 as GHSA-cqj8-47ch-rvvq.

**What is the CVSS score of CVE-2020-29582?**

CVE-2020-29582 has a CVSS 3.1 base score of 5.3 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.

**Which versions are affected by CVE-2020-29582?**

org.jetbrains.kotlin:kotlin-stdlib (Maven): <= 1.4.20.

**How do I fix CVE-2020-29582?**

Upgrade to 1.4.21 or later.

**What is the Package URL (PURL) for CVE-2020-29582?**

The affected package's PURL is pkg:maven/org.jetbrains.kotlin/kotlin-stdlib.

**Is CVE-2020-29582 exploited in the wild?**

CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2020-29582. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. EPSS estimates a 2.57% chance of exploitation in the next 30 days, higher than 84% of CVEs.

## References

- https://www.oracle.com//security-alerts/cpujul2021.html (fix)
- https://www.oracle.com/security-alerts/cpuapr2022.html (fix)
- https://www.oracle.com/security-alerts/cpujan2022.html (fix)
- https://nvd.nist.gov/vuln/detail/CVE-2020-29582 (advisory)
- https://blog.jetbrains.com (advisory)
- https://blog.jetbrains.com/blog/2021/02/03/jetbrains-security-bulletin-q4-2020 (advisory)
- https://lists.apache.org/thread.html/r2721aba31a8562639c4b937150897e24f78f747cdbda8641c0f659fe%40%3Cusers.kafka.apache.org%3E (advisory)
- https://github.com/advisories/GHSA-cqj8-47ch-rvvq (advisory)
- https://lists.apache.org/thread.html/r2721aba31a8562639c4b937150897e24f78f747cdbda8641c0f659fe@%3Cusers.kafka.apache.org%3E

---

Source: CVEminer (https://cveminer.com/vulnerabilities/CVE-2020-29582), compiled from OSV (GitHub advisory), GitHub Advisory Database, OSV (CVE record), CVE.org, CISA KEV catalog. OSV and GitHub Advisory Database content is licensed CC BY 4.0.
