All vulnerabilities

Servers and applications

GHSA-cf78-x7wp-68mf

Race in first-user bootstrap allows deterministic creation of a second persistent superuser

Severity
High 7.5
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
0.20.0
Weakness
Race condition (CWE-362)Time-of-check time-of-use race condition (CWE-367)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

An unauthenticated time-of-check/time-of-use vulnerability in Beszel Hub's first-user bootstrap allows a remote attacker to obtain a second, persistent PocketBase superuser account while the legitimate operator successfully completes setup.

The handler validates that there are zero users and only the temporary installer superuser before reading the complete HTTP request body. An attacker can pass these checks using an incomplete request, keep the handler blocked in body parsing, and finish the request after the legitimate bootstrap has completed.

Both the operator and attacker receive functional administrative credentials. The attacker's account remains valid after a complete Hub restart, while the operator receives no indication that a second superuser was created.

The vulnerable handler is CreateFirstUser.

It performs the following operations:

From henrygd/beszel's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BeszelServers and applications · github:henrygd/beszel
  • From 0.9.0 before 0.20.0

About Beszel

Lightweight server monitoring with historical data, docker stats, and alerts.

From its GitHub repository.
Docker Hub pulls
30,715,805Docker Hub, 29 Nov 2026
GitHub stars
27,705GitHub, 29 Nov 2026
Forks
1,218GitHub, 29 Nov 2026
Latest release
v0.21.2GitHub, 29 Nov 2026
Released
12 Nov 2026GitHub
License
MITGitHub
First published on GitHub
7 Jul 2024GitHub

References