CVE-2026-49869: Kestra OSS OS Command Injection Vulnerability
Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, AuthenticationFilter in Kestra OSS uses request.getPath().endsWith("/configs") to whitelist the public configuration endpoint from Basic Auth. Because the check is a suffix match rather than an exact path match, any API path whose last segment is configs bypasses authentication entirely. An unauthenticated remote attacker can exploit this to create and execute arbitrary workflows without credentials. Because Kestra ships with script execution plugins (plugin-script-shell, plugin-script-python, etc.) enabled by default, this directly results in unauthenticated Remote Code Execution as root inside the Kestra worker container. This vulnerability is fixed in 1.0.45 and 1.3.21.
CVE-2026-49869 is an OS command injection weakness in Kestra OSS that, according to CISA, could let an unauthenticated remote attacker create and run arbitrary workflows without credentials. That combination matters because workflow engines often sit close to automation, secrets, and infrastructure APIs: successful abuse can mean remote code execution in the context of the Kestra process and lateral movement from there. Confirm exact product editions, fixed builds, and deployment notes against the vendor advisory before you act.
The reported weakness classes include OS command injection (CWE-78), incomplete denylist or related filtering issues (CWE-184), and authentication problems (CWE-287). Together they describe a path where untrusted input reaches a shell or similar execution path without proper authn, so internet-exposed or weakly segmented instances deserve priority review.
How it works
OS command injection (CWE-78) occurs when an application builds or invokes operating-system commands using attacker-controlled data without strict separation of code and arguments. In a workflow/orchestration product, that often surfaces where task definitions, script steps, plugin parameters, or template fields are turned into process launches. Incomplete denylists or weak allowlists (CWE-184) can fail to block dangerous metacharacters or alternate encodings. Authentication flaws (CWE-287) mean the dangerous operations may not require valid credentials at all.
Per the CISA summary, an unauthenticated remote attacker could create and execute arbitrary workflows. At a high level, that implies the attacker can drive the product’s workflow creation and run path so that attacker-chosen commands execute on the host or in the runtime environment serving Kestra OSS. Do not assume a particular endpoint, payload shape, or privilege level beyond what the vendor advisory documents; treat any unauthenticated workflow create/execute surface as high risk until proven otherwise.
Am I affected? How to find it in your systems
Kestra OSS is typically deployed as a self-hosted orchestration/automation platform—often as containers or JVM services in data, DevOps, or internal automation environments, sometimes with a web UI and API reachable from developer networks or the internet. Inventory should cover:
- Hosts, VMs, and Kubernetes namespaces running Kestra OSS components (server, workers, UI/API front ends).
- Container images and package names labeled Kestra; compare installed versions and build IDs to the fixed set named in the vendor advisory.
- Whether the management UI or API is exposed beyond a trusted admin network, and whether anonymous or guest access is possible.
- Service accounts, cloud roles, and mounted secrets available to the Kestra process—these define blast radius if command execution succeeds.
For exploitation signs, review access and application logs for unauthenticated workflow creation, unexpected workflow definitions containing shell-like content, sudden worker process spawns, or outbound connections from Kestra hosts that do not match normal automation. Correlate with identity logs showing missing or failed auth on administrative APIs. Exact log fields and indicators of compromise must be confirmed against vendor and your SIEM parsers; public detail beyond the CISA summary is limited here.
How to remediate
Patch first: apply the vendor-supplied update for Kestra OSS as specified in the official advisory for CVE-2026-49869. Validate that every node and worker image is upgraded, not only the primary API host. After upgrade, restart services as directed and re-check version strings in your inventory.
Then harden for this class of flaw:
- Require strong authentication and authorization on all workflow create/execute APIs; disable anonymous access.
- Run Kestra under least privilege: dedicated OS user, minimal filesystem mounts, no unnecessary sudo or Docker socket access.
- Prefer allowlisted task types and sandboxed executors over free-form OS command tasks where the product supports that model.
- Segment the control plane from production data stores and cloud metadata endpoints; restrict egress.
- Rotate credentials and secrets that the Kestra runtime could have read, after you confirm a clean build is in place.
CISA’s required action direction is to apply mitigations per vendor instructions, align with BOD 26-04 risk-based prioritization and forensics triage expectations, evaluate internet exposure, and discontinue use if mitigations are unavailable. Follow those organizational obligations in parallel with the technical fix.
If you can't patch immediately
Reduce exposure until the vendor update is deployed:
- Remove internet exposure; place the UI/API behind VPN or zero-trust access limited to administrators.
- Block or virtual-patch unauthenticated workflow creation/execution paths at a reverse proxy or WAF using vendor- or community-informed rules—only as a temporary control, and only after validating they do not break legitimate ops.
- Disable or tightly restrict features that accept free-form commands, scripts, or remote workflow submission if configuration allows.
- Increase monitoring: alert on new workflows, workflow runs by unknown principals, shell process trees under the Kestra user, and anomalous outbound traffic.
- Snapshot and preserve logs for forensic triage consistent with your incident process and applicable BOD 26-04 guidance.
Known ransomware use is not documented for this CVE in the provided facts; absence of documentation is not proof of safety—treat unauthenticated remote workflow execution as urgent regardless.
If your data may have been exposed
Actively exploited remote-execution flaws in automation platforms frequently precede credential theft, workflow abuse, and broader environment compromise. If logs suggest unauthenticated workflow activity or unexplained command execution on Kestra hosts, isolate affected systems, preserve evidence, rotate secrets the service could access, and follow your incident response plan including any mandated forensics triage. As a simple personal check, you can run a free exposure scan of your email address against known breach datasets to see whether your accounts appear in prior public dumps while enterprise investigation continues.
AICompiled with AI assistance from public sources and published under our editorial standards.
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H