Skip to content

Privilege escalation allows organization groups to be updated/deleted if their UUID is known

High
dani-garcia published GHSA-g65h-982x-4m5m Dec 20, 2024

Package

vaultwarden/server (Docker Hub)

Affected versions

<1.32.6

Patched versions

1.32.7

Description

(This is a maintainer found security issue)

Summary

An attacker is capable of updating or deleting groups from an organization given a few conditions:

  • The attacker has a user account in the server.
  • The attacker's account has admin or owner permissions in an unrelated organization.
  • The attacker knows the target organization's UUID and the target group's UUID.

Note that this vulnerability is related to group functionality and as such is only applicable for servers who have enabled the ORG_GROUPS_ENABLED setting, which is disabled by default.

This attack can lead to different situations:

  • Denial of service, the attacker can limit users from accessing the organization's data by removing their membership from the group.
  • Privilege escalation, if the attacker is part of the victim organization, they can escalate their own privileges by joining a group they wouldn't normally have access to.

For attackers that aren't part of the organization, this shouldn't lead to any possible plain-text data exfiltration as all the data is encrypted client side.

Patches

This vulnerability is patched in Vaultwarden 1.32.7, and users are recommended to update as soon as possible.

Workarounds

If it's not possible to update to 1.32.7, some possible workarounds are:

  • Disabling ORG_GROUPS_ENABLED, which would disable groups functionality on the server.
  • Disabling SIGNUPS_ALLOWED, which would not allow an attacker to create new accounts on the server.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

CVE ID

CVE-2024-56335

Credits