Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in the Kestra orchestration platform could allow an authenticated user to execute arbitrary operating system commands by visiting a crafted link. This could lead to a compromise of the host system.
- A platform flaw enables unauthorized command execution.
- This issue affects systems managing automated workflows.
- Confirm relevance and assess exposure to this vulnerability.
Attack Path
How an attacker could exploit the issue
An attacker with authenticated access to Kestra could trick a user into visiting a specially crafted link. This link would target the "GET /api/v1/main/flows/search" endpoint, triggering a SQL injection vulnerability. The platform's backend, using PostgreSQL, would then execute arbitrary operating system commands on the host machine, potentially leading to full system compromise.
- Authenticated user visits malicious link.
- SQL injection in search endpoint.
- Arbitrary OS command execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow an authenticated user to execute arbitrary operating system commands on the host system when a specific API endpoint is visited with a crafted link. This is possible due to a SQL injection flaw that is then leveraged by PostgreSQL's `COPY ... TO PROGRAM ...` functionality.
- Host OS command execution.
- Visiting a crafted link.
- Unauthorized system access.
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners and infrastructure or platform teams are likely responsible for addressing this vulnerability in the Kestra orchestration platform. The first practical step is to identify all instances of Kestra, confirm their reachability and criticality, and then assign ownership for remediation based on the identified risk.
- Application owners should prioritize remediation.
- Verify Kestra deployment reachability and criticality.
- Plan and coordinate urgent patching or upgrades.