{"id":"GHSA-26hr-q2wp-rvc5","aliases":["GHSA-26hr-q2wp-rvc5","GO-2023-2397"],"related":[],"kind":"vulnerability","state":"published","title":"User with permission to write actions can impersonate another user when auth token is configured in environment variable","summary":"### Impact\n\nWhen lakeFS is configured with **ALL** of the following:\n\n- Configuration option `auth.encrypt.secret_key` passed through environment variable\n- Actions enabled via configuration option `actions.enabled` (default enabled)\n\nthen a user who can configure an action can impersonate any other user.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n\n**ANY ONE** of these is sufficient to prevent the issue:\n\n* Do not pass `auth.encrypt.secret_key` through an environment variable.\n\n   For instance, Kubernetes users can generate the entire configuration as a secret and mount that.  This is described [here](https://kubernetes.io/docs/concepts/configuration/secret/#using-a-secret).\n* Disable actions.\n* Limit users allowed to configure actions.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nWhen lakeFS is configured with **ALL** of the following:\n\n- Configuration option `auth.encrypt.secret_key` passed through environment variable\n- Actions enabled via configuration option `actions.enabled` (default enabled)\n\nthen a user who can configure an action can impersonate any other user.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n\n**ANY ONE** of these is sufficient to prevent the issue:\n\n* Do not pass `auth.encrypt.secret_key` through an environment variable.\n\n   For instance, Kubernetes users can generate the entire configuration as a secret and mount that.  This is described [here](https://kubernetes.io/docs/concepts/configuration/secret/#using-a-secret).\n* Disable actions.\n* Limit users allowed to configure actions.","format":"markdown","source":"ghsa"},{"lang":"en","text":"User with permission to write actions can impersonate another user when auth token is configured in environment variable in github.com/treeverse/lakefs","format":"markdown","source":"go"}],"published":"2023-12-12T00:58:04.000Z","modified":"2026-03-03T04:54:25.145Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","score":6.2,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"go"}],"references":[{"url":"https://github.com/treeverse/lakeFS/security/advisories/GHSA-26hr-q2wp-rvc5","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/treeverse/lakeFS","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-26hr-q2wp-rvc5","url":"https://github.com/advisories/GHSA-26hr-q2wp-rvc5","licence":"CC-BY-4.0","modified":"2024-08-21T14:57:06.124Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2397","url":"https://pkg.go.dev/vuln/GO-2023-2397","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:25.145Z"}],"updatedAt":"2026-11-25T22:56:23.600Z"}