Skip to main content

JetBrains Kotlin EUVDEUVD-2026-141372

| CVE-2026-135282 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-12-02 JetBrains GHSA-2hhf-c29c-q6wm
6.7
CVSS 3.1 · Vendor: JetBrains
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to build cache
  2. Delivery
    Plant malicious KAPT classpath snapshot
  3. Exploit
    KAPT deserializes crafted snapshot
  4. Execution
    Execute code in build process
  5. Impact
    Compromise build host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the build uses KAPT (Kotlin Annotation Processing Tool) and that the attacker can supply or poison a KAPT classpath snapshot that KAPT then deserializes during a Kotlin build with a version before 2.5.0. Per the CVSS vector this is a local attack (AV:L) requiring high privileges (PR:H) - typically write access to the build host, its working directory, or a shared/CI build cache - and has high attack complexity (AC:H), meaning conditions outside the attacker's control (such as the specific snapshot being ingested on a subsequent build) must be met. Limiting factors: no remote network vector, prior privileged local access to build inputs is needed, KAPT must be in use, and a build must run against the poisoned snapshot. The exact code path that makes the deserialization unsafe is not described in the available sources.

Impact

This is a moderate-severity, build-time code-execution issue that is unlikely to be a top operational priority for most defenders. The supplied CVSS 3.1 vector (AV:L/AC:H/PR:H/UI:N, score 6.7) describes a local vulnerability requiring high privileges and high attack complexity - an attacker must already have a privileged foothold on the build machine and successfully craft/plant a malicious KAPT classpath snapshot. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the constrained local/high-complexity profile. No CISA KEV listing and no EPSS score are provided in the input, and no PoC reference is present, so there is no public signal of exploitation. The RCE tag contrasts with the official impact metrics (I:L/A:L rather than full integrity/availability loss), which is unusual for a deserialization code-execution flaw - the discrepancy between the 'code execution' description plus RCE/Deserialization tags and the relatively modest I:L/A:L scoring should be verified with JetBrains, as it materially affects severity. Overall: a genuine CWE-502 deserialization weakness in a widely used toolchain, but the local vector, high privileges and high complexity keep real-world risk well below the 'drop everything' tier; patch within the normal monthly cycle.

Exploit ScenarioDerived

An attacker who can write to a shared or CI build cache plants a maliciously crafted KAPT classpath snapshot. When a developer or CI pipeline using Kotlin before 2.5.0 runs annotation processing, KAPT deserializes the poisoned snapshot and executes attacker-controlled code in the build context. No public exploit identified at time of analysis, and the trigger mechanism beyond 'unsafe deserialization of KAPT classpath snapshots' is not detailed in the available sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Code execution during Kotlin builds that use KAPT (the Kotlin Annotation Processing Tool) affects JetBrains Kotlin versions before 2.5.0, where classpath snapshots are deserialized without adequate safety checks. Exploitation is not remote: per the assessed vector it is a local attack (AV:L) with high attack complexity (AC:H) that requires an attacker to already be able to supply or poison a KAPT classpath snapshot that a later build ingests, so write access to the build host, its working directory, or a shared/CI build cache is a practical prerequisite, and KAPT must actually be in use. Impact is scoped as changed (S:C) with high confidentiality and high integrity/availability impact in our assessment; there is confirmed active exploitation (CISA KEV) is not the case here, and no public exploit identified at time of analysis, with a 'this_month' priority rather than an emergency.

RemediationAI

Vendor-released patch: JetBrains Kotlin 2.5.0 - upgrade the Kotlin toolchain (compiler/plugin versions in the build, including the Gradle or Maven Kotlin plugin version) to 2.5.0 or later, then rebuild. The JetBrains fixed-issues page at https://www.jetbrains.com/privacy-security/issues-fixed/ is the reference supplied for the fix. Since the prerequisite is the ability to supply or poison a KAPT classpath snapshot, compensating controls while upgrades roll out are to restrict write access to build hosts, build working directories and shared/CI build caches to trusted users and jobs, and to purge existing KAPT snapshot caches (invalidate CI caches and local build directories) so a previously poisoned snapshot is not reused after the upgrade - the trade-off is longer cold builds and, for the access restrictions, reduced developer/CI convenience. Builds that do not use KAPT do not exercise the vulnerable deserialization path, but that is a configuration property rather than a guaranteed mitigation and should not replace the upgrade.

Affected VersionsENISA

Kotlin 0 <2.5.0

Affected Packages

euvd kotlin fix: 2.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

KAPT is the Kotlin Annotation Processing Tool that lets Kotlin projects run Java annotation processors during compilation; to speed up repeated builds it records and reuses snapshots of the compile classpath. The flaw is classed as CWE-502 (Deserialization of Untrusted Data): data from such a snapshot is deserialized during a Kotlin build without sufficient validation, so a crafted snapshot can lead to code execution in the context of the build. The CPE cpe:2.3:a:jetbrains:kotlin:*:*:*:*:*:*:*:* covers all Kotlin releases before the fixed version, but the exposure is conditional on the build configuration - projects that do not use KAPT do not exercise the vulnerable path. The exact code path that makes the deserialization unsafe, and the precise snapshot format involved, are not described in the available sources; the trigger beyond 'a poisoned snapshot is ingested on a subsequent build' is likewise not described.

Know when Kotlin gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (JetBrains) PRIMARY 6.7 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L
vuln.today AI 7.8 HIGH

Attacker must place a crafted snapshot in the build cache (AV:L, PR:L, AC:H); code execution escapes the compiler to the build host (S:C) giving full impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (JetBrains).

CVSS VectorVendor: JetBrains

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 14:18 EUVD
CVE Published
Dec 02, 2026 - 12:43 cve.org
MEDIUM 6.7

DescriptionCVE.org

In JetBrains Kotlin before 2.5.0 code execution was possible via unsafe deserialization of KAPT classpath snapshots

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
High
Kotlin is a widely used JVM/Android build toolchain, though KAPT is optional
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Kotlin

View all
CVE-2019-10101 HIGH POC
8.1 Jul 03

JetBrains Kotlin versions before 1.3.30 were resolving artifacts using an http connection during the build process, pote

CVE-2023-26154 MEDIUM POC
5.9 Dec 06

Versions of the package pubnub before 7.4.0; all versions of the package com.pubnub:pubnub; versions of the package pubn

CVE-2020-15824 HIGH
8.8 Aug 08

In JetBrains Kotlin from 1.4-M1 to 1.4-RC (as Kotlin 1.3.7x is not affected by the issue. Rated high severity (CVSS 8.8)

CVE-2026-100725 HIGH
8.3 Sep 27

Cookie scoping bypass in the http4k client-side cookie jar (Maven org.http4k:http4k-core) causes cookies stored by Basic

CVE-2026-100834 HIGH
8.2 Sep 27

Replay of captured Digest authentication credentials is possible in the http4k http4k-security-digest module (org.http4k

CVE-2026-120317 HIGH
8.2 Nov 02

http4k's Digest authentication advertises the RFC 7616 auth-int quality-of-protection but never binds the request entity

CVE-2026-135284 HIGH
8.1 Dec 02

Path traversal (CWE-23) in JetBrains Kotlin before 2.5.0 is reachable through Kotlin Multiplatform dependency metadata,

CVE-2019-10103 HIGH
8.1 Jul 03

JetBrains IntelliJ IDEA projects created using the Kotlin (JS Client/JVM Server) IDE Template were resolving Gradle arti

CVE-2019-10102 HIGH
8.1 Jul 03

JetBrains Ktor framework (created using the Kotlin IDE template) versions before 1.1.0 were resolving artifacts using an

CVE-2026-53914 CRITICAL
9.8 Jun 26

Remote code execution in JetBrains Kotlin before 2.4.20 stems from unsafe deserialization (CWE-502) of build cache metad

CVE-2026-101099 MEDIUM
5.3 Sep 28

Unbounded buffering in the Server-Sent Events parser of the AG-UI Community SDK (Kotlin/Java) lets a malicious or man-in

CVE-2026-135283 MEDIUM
5.3 Dec 02

Path traversal while unpacking the Kotlin/Native distribution lets a tampered archive write files outside the intended e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy