{"id":"CVE-2026-46618","aliases":["CVE-2026-46618","GHSA-7pjr-qpvh-m339","GO-2026-5230"],"related":[],"kind":"vulnerability","state":"published","title":"Fission builder accepts arbitrary buildcmd strings from Environment.spec.builder.command,   allowing the builder pod to invoke arbitrary executables","summary":"Fission is an open-source, Kubernetes-native serverless framework that simplifies the deployment of functions and applications on Kubernetes. Prior to version 1.23.0, before the round-1 security sweep, pkg/builder/builder.go passed Environment.spec.builder.command directly into exec.Command(...) after a strings.Fields split, with no validation of the executable path or its arguments. A user who could create or update Environment CRDs in a namespace observed by the buildermgr could thereby point the builder pod at any executable inside the builder image (e.g. /bin/sh -c '...') and execute arbitrary code in the builder pod context. This issue has been patched in version 1.23.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Fission is an open-source, Kubernetes-native serverless framework that simplifies the deployment of functions and applications on Kubernetes. Prior to version 1.23.0, before the round-1 security sweep, pkg/builder/builder.go passed Environment.spec.builder.command directly into exec.Command(...) after a strings.Fields split, with no validation of the executable path or its arguments. A user who could create or update Environment CRDs in a namespace observed by the buildermgr could thereby point the builder pod at any executable inside the builder image (e.g. /bin/sh -c '...') and execute arbitrary code in the builder pod context. This issue has been patched in version 1.23.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nBefore the round-1 security sweep, `pkg/builder/builder.go` passed `Environment.spec.builder.command` directly into `exec.Command(...)` after a `strings.Fields` split, with no validation of the executable path or its arguments. A user who could create or update `Environment` CRDs in a namespace observed by the buildermgr could thereby point the builder pod at any executable inside the builder image (e.g. `/bin/sh -c '...'`) and execute arbitrary code in the builder pod context.\n\n### Affected component\n\n- `pkg/builder/builder.go:254` — call site (`exec.Command(buildCmd, buildArgs...)`).\n- `pkg/builder/builder.go:106` — input source: `buildCmd, buildArgs = strings.Fields(req.BuildCommand)[0], strings.Fields(req.BuildCommand)[1:]`.\n\n### Impact\n\nA subject with `create` / `update` privilege on `Environment` objects could:\n\n1. Cause the builder pod for any package using that environment to execute arbitrary code.\n2. Read whatever files the builder pod has access to inside its `/packages` shared volume (deployment archive payloads for that package).\n3. Write arbitrary content into the `/packages` shared volume, which the fetcher subsequently uploads as the package deployment archive.\n\nThe builder pod runs in the user's namespace with the `fission-builder` SA (not the more-privileged executor SA), so the impact is bounded to that namespace's package contents and the builder pod's own filesystem. `PR:H` reflects that creating / modifying `Environment` CRDs is typically restricted to cluster admins or platform operators.\n\n### Root cause\n\n`pkg/builder/builder.go`'s build-command parser did not validate the resulting executable path. Although `exec.Command` does not invoke a shell, it does locate the executable via `$PATH`, and `strings.Fields` splitting allowed multiple flags / sub-arguments to be passed.\n\n### Fix\n\nReleased in [v1.23.0](https://github.com/fission/fission/releases/tag/v1.23.0):\n\n- **PR #3364** (commit `0f45c911`) introduces `Builder.resolveBuildCommand` in `pkg/builder/builder.go`, which:\n  1. Accepts an empty string (treated as the default `/build`).\n  2. Accepts the literal `/build`.\n  3. Accepts any absolute path that survives `filepath.Clean` and contains no `..` segments.\n  4. Rejects anything containing whitespace metacharacters or relative paths.\n- `exec.Command` still receives only the validated absolute path; sub-arguments continue to come from `strings.Fields` of the original string but are now passed positionally with no shell expansion.\n\n### Mitigation (until upgrade)\n\n1. Restrict who can create / update `Environment` CRDs to trusted operators only.\n2. Audit `Environment.spec.builder.command` values for any non-`/build` paths.\n3. Run the buildermgr with a tightened ServiceAccount that has no secret access in the builder namespace.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Fission builder accepts arbitrary buildcmd strings from Environment.spec.builder.command, allowing the builder pod to invoke arbitrary executables in github.com/fission/fission","format":"markdown","source":"go"}],"published":"2026-05-21T20:17:24.000Z","modified":"2026-06-25T19:56:39.223Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-78","CWE-250","CWE-269"],"affected":[{"ranges":[{"version":"< 1.23.0","status":"affected"}],"vendor":"fission","product":"fission","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.0"}],"ecosystem":"Go","package":"github.com/fission/fission","purl":"pkg:golang/github.com/fission/fission","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.0"}],"ecosystem":"Go","package":"github.com/fission/fission","purl":"pkg:golang/github.com/fission/fission","source":"go"}],"references":[{"url":"https://github.com/fission/fission/security/advisories/GHSA-7pjr-qpvh-m339","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/fission/fission/pull/3364","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/fission/fission/releases/tag/v1.23.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46618","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/fission/fission","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-10T19:11:10.754Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46618","url":"https://www.cve.org/CVERecord?id=CVE-2026-46618","licence":"CVE Terms of Use","modified":"2026-06-10T19:31:13.669Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7pjr-qpvh-m339","url":"https://github.com/advisories/GHSA-7pjr-qpvh-m339","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:39.223Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5230","url":"https://pkg.go.dev/vuln/GO-2026-5230","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:17.775Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46618","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46618","licence":"Public domain","modified":"2026-06-17T10:53:48.470Z"}],"updatedAt":"2026-11-25T22:59:24.351Z","epss":{"score":0.00364,"percentile":0.32267,"date":"2026-12-01T12:00:22.000Z"}}