CVE-2022-31007

Privilege escalation from administrator in eLabFTW

4.9 medium EPSS 1.61%

Published 31 May 2022 Updated 23 Apr 2025 CNA: GitHub_M

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.

Severity (CVSS)

4.9 medium CVSS 3.1 from GitHub_M (CNA)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 76.3% of all scored CVEs. Scores of 26 Nov 2026.

The assessment of CISA (SSVC, 23 Apr 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-842 Placement of User into Incorrect Group
  • CWE-1287 Improper Validation of Specified Type of Input

Affected products

As the CNA lists them.

ProductVersions
elabftw
affected < 4.3.0

Is my server affected?

Find the installed version of elabftw and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i elabftw
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-31007 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-31007

RHEL, Rocky, Alma, Fedora

rpm -q elabftw
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-31007

Alpine

apk list --installed | grep -i elabftw

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-31007
trivy image --scanners vuln IMAGE | grep CVE-2022-31007

PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.

References

Advisories

Other references

Source: the record CVE-2022-31007 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.