Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to build cache
-
DeliveryPlant malicious KAPT classpath snapshot
-
ExploitKAPT deserializes crafted snapshot
-
ExecutionExecute code in build process
-
ImpactCompromise 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L
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.
Primary rating from Vendor (JetBrains).
CVSS VectorVendor: JetBrains
Lifecycle Timeline
2DescriptionCVE.org
In JetBrains Kotlin before 2.5.0 code execution was possible via unsafe deserialization of KAPT classpath snapshots
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
JetBrains Kotlin versions before 1.3.30 were resolving artifacts using an http connection during the build process, pote
Versions of the package pubnub before 7.4.0; all versions of the package com.pubnub:pubnub; versions of the package pubn
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)
Cookie scoping bypass in the http4k client-side cookie jar (Maven org.http4k:http4k-core) causes cookies stored by Basic
Replay of captured Digest authentication credentials is possible in the http4k http4k-security-digest module (org.http4k
http4k's Digest authentication advertises the RFC 7616 auth-int quality-of-protection but never binds the request entity
Path traversal (CWE-23) in JetBrains Kotlin before 2.5.0 is reachable through Kotlin Multiplatform dependency metadata,
JetBrains IntelliJ IDEA projects created using the Kotlin (JS Client/JVM Server) IDE Template were resolving Gradle arti
JetBrains Ktor framework (created using the Kotlin IDE template) versions before 1.1.0 were resolving artifacts using an
Remote code execution in JetBrains Kotlin before 2.4.20 stems from unsafe deserialization (CWE-502) of build cache metad
Unbounded buffering in the Server-Sent Events parser of the AG-UI Community SDK (Kotlin/Java) lets a malicious or man-in
Path traversal while unpacking the Kotlin/Native distribution lets a tampered archive write files outside the intended e
EUVD-2026-141372
GHSA-2hhf-c29c-q6wm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB