All vulnerabilities

Servers and applications

GHSA-rxhg-2pw9-vf25

Send max_access_count can be exceeded by concurrent access requests

Severity
Medium 5.3
Published
3 Oct 2026
Last changed
3 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.37.0
Weakness
Race condition (CWE-362)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Sources
Project advisories (GitHub)

Description

Vaultwarden does not enforce a Send's max_access_count atomically. The access-count check and the increment are separate operations, so concurrent requests can all pass the check before any of them writes, allowing more accesses than the sender configured.

File: src/api/core/sends.rs

Both Send access endpoints read access_count, compare it against max_access_count, then write access_count + 1 as a separate operation, with no database-level locking:

Two concurrent requests against a Send at access_count = 0, max_access_count = 1: both read 0, both pass the check, and both write access_count = 1. Both return the secret — the text content for a text Send, or a signed download token for a file Send.

The write compounds the problem. save() persists the whole row from memory, so one request's stale in-memory value overwrites another's increment rather than adding to it. The stored counter can therefore under-report the number of accesses that actually succeeded.

From dani-garcia/vaultwarden's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
VaultwardenServers and applications · github:dani-garcia/vaultwarden
  • Every version before 1.37.0

About Vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs

From its GitHub repository.
Docker Hub pulls
361,463,423Docker Hub, 15 Nov 2026
GitHub stars
70,745GitHub, 15 Nov 2026
Forks
3,457GitHub, 15 Nov 2026
Latest release
1.37.5GitHub, 15 Nov 2026
Released
1 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
17 Feb 2018GitHub

References