Skip to main content

CVE-2026-27802 — Vulnerability in vaultwarden — CVE Details

HIGH

Vaultwarden has Privilege Escalation via Bulk Permission Update to Unauthorized Collections by Manager

Published March 4, 2026Updated March 4, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.43%). Schedule for your next planned update.

Does your project use an affected vaultwarden version?

Paste your Cargo.lock to check it for CVE-2026-27802 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Summary

A Manager account (access_all=false) was able to escalate privileges by directly invoking the bulk-access API against collections that were not originally assigned to them. The API allowed changing assigned=false to assigned=true, resulting in unauthorized access.

Additionally, prior to the bulk-access call, the regular single-update API correctly returned 401 Unauthorized for the same collection. After executing the bulk-access API, the same update API returned 200 OK, confirming an authorization gap at the HTTP level.


Description

  • The endpoint accepts ManagerHeadersLoose and does not validate access rights for the specified collectionIds. src/api/core/organizations.rs:551

    headers: ManagerHeadersLoose,
    
  • The received collection_ids are processed directly without per-collection authorization checks. src/api/core/organizations.rs:564

    for col_id in data.collection_ids {
    
  • Existing group assignments for the collection are deleted. src/api/core/organizations.rs:583

    CollectionGroup::delete_all_by_collection(&col_id, &conn).await?;
    
  • Existing user assignments for the collection are deleted. src/api/core/organizations.rs:590

    CollectionUser::delete_all_by_collection(&col_id, &conn).await?;
    
  • By comparison, another bulk-processing endpoint performs per-collection validation using from_loose. src/api/core/organizations.rs:787

    let headers = ManagerHeaders::from_loose(headers, &collections, &conn).await?;
    
  • The actual access control logic is implemented in can_access_collection, which is not invoked in the bulk-access endpoint. src/auth.rs:911

    if !Collection::can_access_collection(&h.membership, col_id, conn).await {
    

Preconditions

  • The attacker possesses a valid Manager account within the target organization.
  • The organization contains collections that are not assigned to the attacker.
  • The attacker can authenticate through the standard API login process (Owner/Admin privileges are not required).

Steps to Reproduce

  1. Log in as a Manager and obtain a Bearer token.

  2. Confirm the current values of assigned, manage, readOnly, and hidePasswords for the target collection.

  3. Verify that the standard update API returns 401 Unauthorized when attempting to modify the unassigned collection.

  4. Invoke the bulk-access API, including:

    • collectionIds containing the target collection
    • users containing the attacker’s own membership_id Confirm that the API returns 200 OK.
  5. Re-run the standard update API. Confirm that it now succeeds and that the previously unauthorized modification is applied.


Required Minimum Privileges

  • Manager role within the target organization (the issue occurs even when access_all=false)

Attack Scenario

A delegated administrator or department-level Manager within an organization directly calls the API to add themselves to unauthorized collections and gain access to confidential information.

Because the bulk update process deletes and reassigns existing permissions, the attacker can also remove other users’ access, enabling denial-of-service or sabotage within the organization.


Potential Impact

  • Confidentiality: Unauthorized access to sensitive information within restricted collections.
  • Integrity: Unauthorized modification of collection permission settings and arbitrary changes to access controls.
  • Availability: Deletion of existing assignments may cause legitimate users to lose access.

Advisory Timeline

  • First published March 4, 2026 (267 days ago).
  • Last revised March 4, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update vaultwarden to 1.35.4 or later
cargo update -p vaultwarden --precise 1.35.4

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
vaultwarden crates.io · Affected: All versions1.35.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-269
    Improper Privilege ManagementMITRE
  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Frequently Asked Questions

What is CVE-2026-27802?
Vaultwarden has Privilege Escalation via Bulk Permission Update to Unauthorized Collections by Manager. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
How do I check if my project is affected by CVE-2026-27802?
CVE-2026-27802 affects vaultwarden. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-27802 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.3

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.43%
EPSS percentile: 29.4

This is a below-median EPSS score — only 29.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-r32r-j5jq-3w4m

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-27803
    HIGH

    Vaultwarden's Collection Management Operations Allowed Without `manage` Verification for Manager Role

  • CVE-2024-55225
    HIGH

    Vaultwarden vulnerable to user impersonation

  • CVE-2026-27801
    MEDIUM

    Vaultwarden has 2FA Bypass on Protected Actions due to Faulty Rate Limit Enforcement

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock