CVE-2026-135285

kotlin: Kotlin: Path traversal via library package names

Published Dec 2, 2026 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
Description
In JetBrains Kotlin before 2.5.0 path traversal was possible via package names of Kotlin/JS libraries

Analysis

AI-generated

Technical impact

A path traversal flaw in JetBrains Kotlin before version 2.5.0 allows an attacker to craft library package names that resolve to filesystem paths outside the intended application directory. If exploited, the attacker could potentially read or manipulate files that should remain protected, creating a risk to data confidentiality and integrity. The weakness is characterized by CWE-22 and CWE-23, indicating insufficient validation of path components.

Affected Systems

JetBrains Kotlin is affected. All installations using Kotlin/JS libraries in versions prior to 2.5.0 are vulnerable; the patch or fix is released in Kotlin 2.5.0 and later.

Risk and Exploitability

The CVSS score of 4.2 indicates moderate severity, while the EPSS score of less than 1% shows a very low likelihood of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector would be through the inclusion of a malicious or manipulated library package name during development or build time, with no network exposure required. The conditions for exploitation require the attacker to control the package name; it does not appear to allow arbitrary remote exploitation without local code execution privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kotlin to version 2.5.0 or later
  • Manually validate or sanitize library package names in Kotlin/JS projects to eliminate path traversal patterns before building or publishing
  • Configure build tools or CI pipelines to reject any package names containing path separators or traversal sequences during the dependency resolution phase

Generated by OpenCVE AI on December 3, 2026 at 16:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title kotlin: Kotlin: Path traversal via library package names
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Jetbrains
Jetbrains kotlin
Vendors & Products Jetbrains
Jetbrains kotlin
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description In JetBrains Kotlin before 2.5.0 path traversal was possible via package names of Kotlin/JS libraries
Weaknesses CWE-23
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-23

    Relative Path Traversal

Sources

Status
PUBLISHED
Assigner
JetBrains
Published
Updated
Dec 2, 2026, 4:44 PM
Reserved
Nov 23, 2026, 4:29 PM
Status
Awaiting Analysis
Published
Dec 2, 2026, 1:17 PM
Modified
Dec 2, 2026, 8:31 PM
Severity
Moderate
Public date
Dec 2, 2026, 12:43 PM