{"id":"GHSA-gv5w-hfx8-8cwq","revision":"f182854df1144ea3b714b41827dac06d","records":[{"revision":"f182854df1144ea3b714b41827dac06d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-gv5w-hfx8-8cwq","aliases":["BIT-seaweedfs-2026-72921","CVE-2026-72921","GO-2026-6361"],"title":"SeaweedFS: Filer JWT allowed_prefixes literal prefix match allows cross-tenant access to sibling paths","description":"### Impact\nWhen a filer JWT restricts a token to a set of path prefixes via `allowed_prefixes`, the authorization check used a literal byte-prefix match (`strings.HasPrefix`). A token scoped to `/tenant1` therefore also authorized requests to sibling paths such as `/tenant1234`, `/tenant1-old`, and `/tenant1backup`.\n\nIn a multi-tenant deployment this lets the holder of one tenant's token access another tenant's data. Because `allowed_prefixes` gates both read and write tokens, the impact covers cross-tenant reads and writes. A valid scoped token is required, so this is an authorization bypass rather than a fully unauthenticated flaw.\n\n### Affected component\n- `weed/server/filer_server_handlers.go` (JWT `allowed_prefixes` authorization check)\n\n### Patches\nFixed in **4.24**. The check now matches on `/`-separated path components after `path.Clean` normalisation, so `/tenant1` authorizes only `/tenant1` and its descendants — not `/tenant1234` or other sibling paths.\n\n### Workarounds\nWhere feasible, choose prefix names that are not string-prefixes of one another (e.g. keep a trailing separator convention). Upgrade to 4.24.\n\n### References\n- Reported by Kadir Arslan (https://github.com/KadirArslan)","state":0,"publishedAt":"2026-09-02T23:42:05+00:00","modifiedAt":"2026-09-10T15:25:33.0765151+00:00","affected":[{"ecosystem":"Go","name":"github.com/seaweedfs/seaweedfs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20260512171048-05ed5c9ae8a2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/seaweedfs/seaweedfs/security/advisories/GHSA-gv5w-hfx8-8cwq","https://nvd.nist.gov/vuln/detail/CVE-2026-72921","https://github.com/seaweedfs/seaweedfs/pull/9439","https://github.com/seaweedfs/seaweedfs/commit/05ed5c9ae8a2a45101b52b61d02f170d20d587ff","https://github.com/seaweedfs/seaweedfs","https://github.com/seaweedfs/seaweedfs/releases/tag/4.24"],"sourceUrl":"https://github.com/advisories/GHSA-gv5w-hfx8-8cwq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gv5w-hfx8-8cwq","identifiers":["GHSA-gv5w-hfx8-8cwq","BIT-seaweedfs-2026-72921","CVE-2026-72921","GO-2026-6361"]},"retained":false,"historicalAffected":[]}],"coverage":[]}