Skip to main content
Vulnerability Database/CVE-2026-108474

CVE-2026-108474: JetBrains Exposed SQL Injection Vulnerability

CVE-2026-108474 is an SQL injection flaw in JetBrains Exposed before version 1.5.1 caused by unescaped string arguments in SQL functions. This article covers the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108474 Overview

CVE-2026-108474 is a SQL injection vulnerability in JetBrains Exposed, a Kotlin SQL framework used to build database access layers in JVM applications. Versions before 1.5.1 fail to escape string arguments passed to several SQL functions, allowing attackers to inject arbitrary SQL into generated queries. The flaw is tracked under CWE-89 and carries network-reachable, unauthenticated exploitation characteristics. Successful exploitation can expose, modify, or destroy database contents and may be used to pivot further into application infrastructure.

Critical Impact

Unauthenticated attackers can inject arbitrary SQL through unescaped string arguments in JetBrains Exposed functions, compromising database confidentiality, integrity, and availability.

Affected Products

  • JetBrains Exposed versions prior to 1.5.1
  • JVM applications using Exposed for database access
  • Kotlin services exposing user input to affected SQL function arguments

Discovery Timeline

  • 2026-10-10 - CVE-2026-108474 published to the National Vulnerability Database (NVD)
  • 2026-10-14 - Last updated in the NVD database

Technical Details for CVE-2026-108474

Vulnerability Analysis

JetBrains Exposed is a Kotlin SQL framework that builds parameterized queries using typed DSL constructs. The vulnerability stems from several SQL function wrappers that accepted string arguments without escaping them before concatenation into the generated query. When an application forwarded user-controlled values into these functions, the injected content became part of the executed SQL statement rather than a bound parameter.

An attacker who controls one of these string arguments can terminate the intended expression and append arbitrary SQL. The resulting query runs with the privileges of the application's database account. Depending on account privileges, the attacker can read arbitrary tables, modify records, drop objects, or execute database-specific side effects such as file operations or extension calls.

The issue is remediated in Exposed 1.5.1, which escapes the affected string arguments before query assembly. See the JetBrains Security Issues Fixed advisory for the vendor-tracked details.

Root Cause

The root cause is missing input neutralization in SQL function wrappers that accepted raw string arguments. Instead of binding these arguments as parameters, the framework interpolated them directly into the SQL string. Any attacker-controlled character sequence, including single quotes, comment markers, and statement terminators, was passed through to the database engine unchanged.

Attack Vector

Exploitation requires an application that forwards untrusted input into one of the affected Exposed SQL function wrappers. The attacker submits crafted input through any application entry point that reaches the vulnerable call, such as a web form field, HTTP query parameter, or API body. No authentication or user interaction is required by the framework itself, though the application's own access controls may apply.

The vulnerability manifests at query-construction time inside the Exposed DSL. See the JetBrains Security Issues Fixed advisory for the specific affected functions and remediation details.

Detection Methods for CVE-2026-108474

Indicators of Compromise

  • Database query logs containing unexpected SQL fragments such as UNION SELECT, stacked statements, or inline comments inside argument positions.
  • Application logs showing errors from the database driver tied to malformed SQL in Exposed-generated statements.
  • Outbound database connections executing schema introspection queries against information_schema from application accounts that do not normally issue them.

Detection Strategies

  • Inventory JVM and Kotlin services using JetBrains Exposed and identify dependency versions below 1.5.1 through build manifests such as build.gradle.kts or pom.xml.
  • Perform static analysis to locate call sites that pass user-controlled strings into Exposed SQL function wrappers.
  • Review database audit logs for anomalous query patterns originating from application service accounts, including unexpected table access and schema enumeration.

Monitoring Recommendations

  • Enable statement-level auditing on backend databases accessed by Exposed-based applications.
  • Forward application and database logs into a centralized analytics platform for correlation and historical review.
  • Alert on database errors indicating syntax failures in parameterized queries, which often accompany injection attempts.

How to Mitigate CVE-2026-108474

Immediate Actions Required

  • Upgrade JetBrains Exposed to version 1.5.1 or later across all affected services.
  • Audit application code for user input passed into Exposed SQL function wrappers and refactor to use typed DSL parameters.
  • Rotate database credentials used by applications that may have been exposed to injection attempts.

Patch Information

JetBrains has addressed CVE-2026-108474 in Exposed 1.5.1 by escaping the affected string arguments. Update the dependency version in your project build file and redeploy. Vendor details are tracked on the JetBrains Security Issues Fixed page.

Workarounds

  • Restrict database account privileges used by Exposed-based applications to the minimum required tables and operations.
  • Add input validation at the application layer to reject characters that are not expected in the given field, such as quotes or semicolons in identifier inputs.
  • Place a web application firewall in front of exposed endpoints to filter common SQL injection payloads until the upgrade is deployed.
bash
# Update JetBrains Exposed in a Gradle Kotlin project
# build.gradle.kts
dependencies {
    implementation("org.jetbrains.exposed:exposed-core:1.5.1")
    implementation("org.jetbrains.exposed:exposed-dao:1.5.1")
    implementation("org.jetbrains.exposed:exposed-jdbc:1.5.1")
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.