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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.9
- **CVSS:** 4.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.61% (percentile 76, 2026-11-26)
- **CWE:** CWE-842, CWE-1287
- **Published:** 2022-05-31T19:30:13.000Z
- **Modified:** 2026-06-17T04:44:35.673Z

## Who should check

- Anyone running elabftw \< 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.

## Affected and fixed versions

- elabftw: \< 4.3.0 (cvelist)

## Mitigation

- Upgrade elabftw to 4.3.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-31007. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31007.md
Affected: elabftw < 4.3.0
Fixed in: elabftw 4.3.0

Steps:
1. Search this machine and project for elabftw: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-31007 being exploited?

There is no confirmed exploitation: CVE-2022-31007 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-31007?

Medium: CVSS 4.9 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2022-31007?

elabftw \< 4.3.0.

### Is there a fix for CVE-2022-31007?

Yes. Fixed in elabftw 4.3.0. Upgrade elabftw to 4.3.0 or later.

### How do I check if I'm affected by CVE-2022-31007?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elabftw/elabftw/security/advisories/GHSA-937c-m7p3-775v>
- other: <https://github.com/elabftw/elabftw/releases/tag/4.3.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-31007>

HTML: <https://flawdb.com/CVE-2022-31007> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-31007>
