Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34612

CVE-2026-34612: Kestra SQL Injection RCE Vulnerability

CVE-2026-34612 is a SQL injection vulnerability in Kestra orchestration platform that allows authenticated attackers to execute arbitrary code. This article covers the technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-34612 Overview

CVE-2026-34612 is a critical SQL Injection vulnerability in Kestra, an open-source, event-driven orchestration platform. This vulnerability affects Kestra deployments prior to version 1.3.7 and specifically impacts the default docker-compose deployment configuration. The flaw exists in the /api/v1/main/flows/search endpoint, where insufficient input sanitization allows attackers to inject malicious SQL queries that can be leveraged to achieve Remote Code Execution (RCE) on the underlying host system.

The attack chain is particularly dangerous because it exploits PostgreSQL's COPY ... TO PROGRAM ... functionality, which allows the database to execute arbitrary operating system commands. Once an authenticated user visits a crafted malicious link, the injected payload is processed by the PostgreSQL backend, ultimately resulting in command execution on the host machine.

Critical Impact

Authenticated attackers can achieve full Remote Code Execution on the host system through SQL Injection, potentially leading to complete system compromise, data exfiltration, and lateral movement within the infrastructure.

Affected Products

  • Kestra (default docker-compose deployment) versions prior to 1.3.7
  • Kestra installations using PostgreSQL backend with H2 repository service
  • Kestra deployments with exposed /api/v1/main/flows/search endpoint

Discovery Timeline

  • 2026-04-03 - CVE-2026-34612 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-34612

Vulnerability Analysis

This vulnerability stems from improper handling of user-supplied input in the label search functionality within Kestra's JDBC repository services. The flaw specifically affects how label keys are incorporated into dynamic SQL queries used for flow and execution searches.

When processing label search parameters, the application constructs JQ (JSON Query) expressions dynamically by directly concatenating user input into SQL field definitions. This direct string concatenation bypasses any parameterization, allowing attackers to break out of the intended query structure and inject arbitrary SQL commands.

The exploitation leverages PostgreSQL's powerful COPY ... TO PROGRAM command, which is designed for data export but can be abused to execute shell commands on the database server. When combined with the SQL injection point, this creates a direct pathway from a web request to arbitrary command execution on the underlying operating system.

Root Cause

The root cause is classic SQL Injection through unsafe string concatenation in the H2ExecutionRepositoryService.java and H2FlowRepositoryService.java files. The vulnerable code constructs dynamic SQL queries by directly embedding user-controlled label keys into JQ string expressions without proper parameterization or escaping.

The vulnerable pattern concatenates the user-supplied key variable directly into the SQL field definition string, allowing injection of arbitrary SQL syntax through carefully crafted label parameters.

Attack Vector

The attack exploits the network-accessible search endpoint and requires only low-privilege authentication. An attacker can craft a malicious URL containing the SQL injection payload in the label search parameters. When an authenticated user accesses this link—either by being tricked into clicking it or through automated means—the malicious SQL is executed against the PostgreSQL database.

The attack flow proceeds as follows: the crafted request reaches the /api/v1/main/flows/search endpoint, the label parameters are processed without sanitization, the injected SQL escapes the JQ string context, PostgreSQL executes the COPY ... TO PROGRAM command, and arbitrary OS commands run on the host system.

java
// Vulnerable code pattern (before patch)
// Source: https://github.com/kestra-io/kestra/commit/3926762795df8ad3e03924b370c51832ed3a21d3

         if (labels != null) {
             labels.forEach((key, value) ->
             {
-                Field<String> valueField = DSL.field("JQ_STRING(\"value\", '.labels[]? | select(.key == \"" + key + "\") | .value')", String.class);
+                Field<String> valueField = DSL.field("JQ_STRING(\"value\", CONCAT('.labels[]? | select(.key == \"', {0}, '\") | .value'))", String.class, DSL.val(key, String.class));
                 if (value == null) {
                     conditions.add(valueField.isNull());
                 } else {

Source: GitHub Commit Changes

The patch replaces direct string concatenation with parameterized queries using DSL.val() to properly escape the user-supplied key value, preventing SQL injection by treating the input as data rather than executable code.

Detection Methods for CVE-2026-34612

Indicators of Compromise

  • Unusual queries to /api/v1/main/flows/search with suspicious label parameters containing SQL syntax characters (single quotes, semicolons, COPY, PROGRAM)
  • PostgreSQL logs showing COPY ... TO PROGRAM commands originating from application queries
  • Unexpected process spawning from the PostgreSQL service user
  • Outbound network connections from the database server to unusual destinations

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in the label search parameters
  • Monitor PostgreSQL query logs for COPY ... TO PROGRAM statements that are not part of normal application behavior
  • Deploy endpoint detection to identify anomalous child processes spawned by the PostgreSQL service
  • Configure intrusion detection systems to alert on SQL injection payload patterns in HTTP request parameters

Monitoring Recommendations

  • Enable detailed logging on the Kestra application to capture all search endpoint requests with full parameter values
  • Configure PostgreSQL audit logging to track all COPY and PROGRAM related commands
  • Establish baseline network behavior for database servers and alert on deviations
  • Monitor system calls on hosts running PostgreSQL for unexpected command execution

How to Mitigate CVE-2026-34612

Immediate Actions Required

  • Upgrade Kestra to version 1.3.7 or later immediately
  • If immediate upgrade is not possible, restrict access to the /api/v1/main/flows/search endpoint using network-level controls
  • Review PostgreSQL logs for any signs of exploitation
  • Audit user sessions and access patterns for the period the vulnerable version was deployed

Patch Information

Kestra has released version 1.3.7 which addresses this SQL Injection vulnerability. The fix implements proper parameterized queries using DSL.val() to safely handle user-supplied label keys, preventing malicious input from being interpreted as SQL code. Organizations should upgrade to this version as soon as possible.

For detailed patch information, refer to the GitHub Security Advisory GHSA-365w-2m69-mp9x and the GitHub Release v1.3.7.

Workarounds

  • Implement network segmentation to restrict access to the Kestra API from untrusted networks
  • Configure PostgreSQL to run with minimal privileges and disable COPY ... TO PROGRAM if not required for legitimate operations
  • Deploy a reverse proxy or WAF to filter requests containing SQL injection patterns before they reach the application
  • Restrict the PostgreSQL user's operating system permissions to limit the impact of command execution
bash
# PostgreSQL configuration to restrict COPY PROGRAM functionality
# Add to postgresql.conf to limit potential exploitation impact

# Restrict superuser commands (requires PostgreSQL restart)
# Note: This may impact legitimate backup operations
log_statement = 'all'
log_min_duration_statement = 0

# Monitor for suspicious COPY commands
# Add to pg_hba.conf to restrict database access
# hostssl kestra kestra_app 10.0.0.0/8 scram-sha-256

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKestra

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v1.3.7

  • GitHub Security Advisory GHSA-365w-2m69-mp9x
  • Related CVEs
  • CVE-2026-33664: Kestra Orchestration Platform XSS Vulnerability

  • CVE-2026-29082: Kestra XSS Vulnerability in Markdown
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English