OSV 1.4.0 · github-reviewed · 修改于 2026-07-01 02:17
发布时间
2026-07-01 02:17
GitHub 审查时间
2026-07-01 02:17
NVD 发布时间
2026-06-11 02:17
源文件
advisories/github-reviewed/2026/06/GHSA-cvw6-gfvv-953q/GHSA-cvw6-gfvv-953q.json
The Fission Function admission webhook (pkg/webhook/function.go) validated that spec.secrets[].namespace and spec.configmaps[].namespace equalled the function's own namespace but performed no equivalent check on
spec.environment.namespace.
An attacker with permission to create Functions in their own namespace could set spec.environment.namespace to any other tenant's namespace. poolmgr and newdeploy would then look up and use the victim's Environment CRD when scheduling
function pods, so the attacker's function executed inside the victim's container image.
This is useful both for code and credential theft — the victim's runtime image may contain hardcoded secrets — and for confused-deputy attacks where the victim's runtime image is a privileged sidecar.
A tenant with functions.fission.io/create could run their own function code inside another tenant's container image, breaking the namespace trust boundary that the Function specification implies.
Fixed in #3389 and released in v1.24.0.
pkg/webhook/function.go::Validate) rejects Function.spec.environment.namespace != metadata.namespace. An empty namespace remains accepted (the CLI defaults it to the function's namespace).Environments(...).Get in poolmgr getFunctionEnv and newdeploy fnCreate / RefreshFuncPods, covering webhook-bypass clusters (failurePolicy=Ignore)
and stale Function objects from upgrade-before-restart windows.Functions that explicitly set spec.environment.namespace to a different namespace are now rejected at admission. Empty-string remains accepted.