{"id":"GHSA-vjhc-cf4p-72q4","revision":"5b9872cae2ee4684bc1e2056785cf32b","records":[{"revision":"5b9872cae2ee4684bc1e2056785cf32b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-vjhc-cf4p-72q4","aliases":["CVE-2026-49821","GO-2026-5859"],"title":"Fission: Cross-namespace Environment reference in Package allows build-time command execution and SA token exfiltration","description":"### Summary\n\nFission's `buildermgr` controller processed `Package` CRDs without verifying that `Package.spec.environment.namespace` matched `Package.metadata.namespace`.\n\n### Details\n\nAn attacker with `packages.fission.io/create` in their own namespace could set `spec.environment.namespace` to any other tenant's namespace. The controller then used its high-privilege service account to fetch the Environment\ncross-namespace and dispatch the build command into the **victim namespace's** builder pod.\n\nThe build command's stdout is written verbatim into `Package.status.buildlog`. By running malicious code through an npm `preinstall` lifecycle hook (or any equivalent build step), the attacker could read the victim namespace's\n`fission-builder` Bearer token from inside that builder pod and surface it through the build log — then use the leaked token to read every Secret and ConfigMap in the victim namespace.\n\n### Impact\n\nCross-tenant compromise: a package author in one namespace could execute code inside another tenant's builder pod and exfiltrate that namespace's `fission-builder` service-account token, giving namespace-wide secret and configmap read in\n the victim namespace.\n\n### Fix\n\nFixed in [#3379](https://github.com/fission/fission/pull/3379) and released in [v1.24.0](https://github.com/fission/fission/releases/tag/v1.24.0). Two checks in series:\n\n- **Admission webhook** (`pkg/webhook/package.go::Validate`) rejects `Package.spec.environment.namespace != Package.metadata.namespace`. An empty namespace is still accepted; the controllers default it to the package's own namespace.\n- **Controller belt-and-braces:** the same check is repeated in `pkg/buildermgr/pkgwatcher.go::build` and `pkg/buildermgr/common.go::buildPackage` before the cross-namespace `Environments(...).Get` call, so a stale Package CR or a\nwebhook-bypass cluster (`failurePolicy=Ignore`) cannot exploit the primitive either.\n\n### Behavioural change\n\nPackages that explicitly set `spec.environment.namespace` to a different namespace are now rejected at admission. Empty-string remains accepted (resolves to the package's own namespace, the same as the prior implicit behaviour).","state":0,"publishedAt":"2026-06-30T18:15:27+00:00","modifiedAt":"2026-07-07T16:11:15.7954311+00:00","affected":[{"ecosystem":"Go","name":"github.com/fission/fission","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.24.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/fission/fission/security/advisories/GHSA-vjhc-cf4p-72q4","https://nvd.nist.gov/vuln/detail/CVE-2026-49821","https://github.com/fission/fission/pull/3379","https://github.com/fission/fission/commit/e2b92663499f4dc3a1e2d38178f39c3c65e0134a","https://github.com/fission/fission","https://github.com/fission/fission/releases/tag/v1.24.0"],"sourceUrl":"https://github.com/advisories/GHSA-vjhc-cf4p-72q4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vjhc-cf4p-72q4","identifiers":["GHSA-vjhc-cf4p-72q4","CVE-2026-49821","GO-2026-5859"]},"retained":false,"historicalAffected":[]}],"coverage":[]}