Skip to main content
Menu
Advisories

Local condition evaluator can execute untrusted task output in the host process

GHSA-RHJM-6347-5X33Published Updated GitHub

Description

Release status — November 18, 2026

Fixed in PyPI kfp 2.18.1, published November 18, 2026. The containing SDK tag and release contents were checked. Upgrade installed SDK environments separately; a server upgrade does not update an installed SDK. The affected range below is unchanged, and patched-version metadata is now 2.18.1.

Summary

The KFP SDK's local condition evaluator inserts runtime values into Python expression text without escaping them, then calls eval. A task output that contains a crafted string can therefore escape the intended condition expression and execute Python in the host-side local orchestrator process. The restricted __builtins__ dictionary does not make this string interpolation safe.

This is a local-execution issue in the published kfp SDK, first present in 2.16.0 and still present in 2.18.0. It is not a KFP API-server or Kubernetes-cluster execution path. SDK 2.18.1 is the first patched release.

Trust boundary and evidence

The 2.18.0 evaluator interpolates string values both for inputs.parameter_values[...] CEL references and direct pipeline-channel references by wrapping the value in single quotes without escaping its contents. It then evaluates the resulting text as Python. The orchestrator stores regular-task outputs before evaluating later conditions. With the SDK's DockerRunner, component tasks run in containers while the condition evaluator runs in the user's local orchestrator process; the default Docker task handler mounts the pipeline root and optional workspace, not the host process itself.

The original GHSA-rhjm-6347-5x33 report by @optimus-fulcria demonstrated an eval sandbox escape. On its own, a pipeline author intentionally supplying malicious condition source has not established a new trust boundary, because that author can already run local code. The independent GHSA-857c-cpw3-xq2h report by @elstati0n identified the consequential lower-trust route: a malicious or compromised upstream component can emit a crafted value for an otherwise ordinary condition, crossing from a component container into the host orchestrator. Both reports concern the same evaluator and the same eventual fix.

This requires a user to run a local pipeline that consumes the untrusted component output. It does not occur merely by installing the SDK or viewing a hosted run. A DockerRunner pipeline reproduced the boundary crossing: a containerized component returned a crafted value that created a harmless marker in the host orchestrator and incorrectly ran a downstream conditional task. With the fix, the identical pipeline created no host marker and did not run that downstream task.

Remediation status

The fix merged on October 29, 2026 in PR #15259 on master (2c8d0f8a57b92e9169a4faa812c0fd52693846ee) and PR #15260 on release-2.18 (8836bcf8dc002f1b0d0e84de6f274c8dfdc6eec2). It replaces Python eval with a constrained AST interpreter and binds task outputs as data for both direct pipeline-channel and CEL inputs.parameter_values references.

Regression coverage includes malicious component output, ordinary conditions, quoted operator text, compiler string promotion, literal backslashes and paired backslashes before a closing quote, and numeric conversion overflow. The final focused local suites passed 23 tests and 28 subtests on each branch; changed-file hooks passed. The DockerRunner reproduction above was also verified with the fix on both development lines.

The private AST proposal by @maycuatroi1 informed remediation review. The merged implementation by @jeffspahr covers both reference forms and the additional compatibility cases. Reporting and proposed-patch credit are retained below.

Published kfp SDK 2.18.0 remains affected. The affected range stays >= 2.16.0, <= 2.18.0; the first patched SDK version is 2.18.1. A server upgrade alone does not update an installed local SDK.

Severity and coordination

CVSS v3.1: 7.8 High — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The victim must run a local pipeline that consumes output from a malicious or compromised component. The reproduced impact is arbitrary Python execution with the host orchestrator process's permissions. This does not establish remote exploitation of a hosted KFP API server or execution without user interaction.

The earlier DockerRunner-reproduction and incomplete-fix blockers are resolved. The fix is verified in the SDK 2.18.1 tag, and that SDK release is published on PyPI.

Attribution: @optimus-fulcria reported the evaluator escape first. @elstati0n independently reported the task-output-to-host path and is co-credited as a reporter because that path establishes the concrete lower-trust impact. @maycuatroi1 contributed a proposed patch, not a discovery claim. Earlier related reports mhm2, 4xm5, x6j9, 9vxc, h9vm, and f4c4 retain their separate submissions and attribution.

Affected versions

References

GitHub · kubeflow/pipelines