# GHSA-26hr-q2wp-rvc5: User with permission to write actions can impersonate another user when auth token is configured in environment variable

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-12-12T00:58:04.000Z
- Modified: 2026-03-03T04:54:25.145Z
- Also known as: GO-2023-2397

## Description

### Impact

When lakeFS is configured with **ALL** of the following:

- Configuration option `auth.encrypt.secret_key` passed through environment variable
- Actions enabled via configuration option `actions.enabled` (default enabled)

then a user who can configure an action can impersonate any other user.

### Patches
_Has the problem been patched? What versions should users upgrade to?_

### Workarounds

**ANY ONE** of these is sufficient to prevent the issue:

* Do not pass `auth.encrypt.secret_key` through an environment variable.

   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).
* Disable actions.
* Limit users allowed to configure actions.

(As written by GitHub Advisory Database.)

## Affected

- github.com/treeverse/lakefs (Go): before 1.3.1

## References

- <https://github.com/treeverse/lakeFS/security/advisories/GHSA-26hr-q2wp-rvc5> (advisory, web)
- <https://github.com/treeverse/lakeFS> (package)

## Sources

- GitHub Advisory Database: [GHSA-26hr-q2wp-rvc5](https://github.com/advisories/GHSA-26hr-q2wp-rvc5), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2023-2397](https://pkg.go.dev/vuln/GO-2023-2397), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-26hr-q2wp-rvc5 · Whole record: https://cve.day/GHSA-26hr-q2wp-rvc5.json · Rebuilt by cve.day 2026-11-25T22:56:23.600Z
