CVE-2026-34612

Kestra: Remote Code Execution via SQL Injection

Published Apr 3, 2026 CVSS 3.1 · 10 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Kestra allows a malicious attacker who is already authenticated to inject an arbitrary SQL payload into the "GET /api/v1/main/flows/search" endpoint. The backend executes this payload via PostgreSQL's COPY … TO PROGRAM clause, which runs arbitrary OS commands on the host. The result is full remote code execution, giving an attacker the same privileges as the process running the Kestra service.

Affected Systems

The vulnerability exists in all releases of the Kestra event‑driven orchestration platform prior to version 1.3.7, specifically the default Docker‑compose deployment. The affected product is Kestra.io’s Kestra server. Upgrading to v1.3.7 or later eliminates the flaw.

Risk and Exploitability

With a CVSS score of 10, the issue is considered critical. Exploitation requires a legitimate authentication token and crafted URL, making it an authenticated remote exploit. The EPSS score is below 1 %, indicating low observed exploitation likelihood, and the vulnerability is not listed in CISA’s KEV catalog. Nonetheless, the high severity combined with the possibility of arbitrary code execution warrants urgent action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading to Kestra v1.3.7 or later
  • Verify that the "GET /api/v1/main/flows/search" endpoint is still accessible only to authorized users
  • Check PostgreSQL configuration to ensure COPY … TO PROGRAM is not exploitable if upgrade is delayed
  • Monitor system logs for suspicious SQL execution attempts

Generated by OpenCVE AI on April 13, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Kestra
Kestra kestra
CPEs cpe:2.3:a:kestra:kestra:*:*:*:*:*:*:*:*
Vendors & Products Kestra
Kestra kestra
Type Values Removed Values Added
First Time appeared Kestra-io
Kestra-io kestra
Vendors & Products Kestra-io
Kestra-io kestra
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Kestra: Remote Code Execution via SQL Injection
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 6, 2026, 4:10 PM
Reserved
Mar 30, 2026, 5:15 PM
Status
Analyzed
Published
Apr 3, 2026, 11:17 PM
Modified
Jul 24, 2026, 10:10 PM