Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain provisionable IdP identity in target SSO
-
DeliveryCraft ExternalId prefixed with victim's 50-char identifier
-
ExploitInitiate SSO login to Bitwarden
-
ExecutionParameter truncated to NVARCHAR(50) matches victim
-
PersistAuthenticate as victim, receive access token
-
ImpactAccess victim-scoped organization vault
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication algorithm review
|
| Exploitation Conditions | Requires a self-hosted Bitwarden Server deployment backed by Microsoft SQL Server (the truncation manifests via the SQL Server NVARCHAR(50) stored-procedure parameter) with organization SSO login enabled. The attacker must be able to obtain or control an identity-provider ExternalId whose value begins with the full 50-character ExternalId of a targeted victim organization member (PR:L - a provisionable IdP identity is needed). Limiting factors: exploitation is targeted (attacker must know the victim's specific ≥50-char identifier prefix), depends on non-default SSO configuration, is confined to SQL Server deployments, and is fixed in v2026.5.0. |
| Impact | This is a genuine authentication-bypass / account-takeover flaw (CWE-303) mislabeled in the input as 'Information Disclosure' - the outcome is a victim-scoped access token, i.e. full impersonation, not mere data leakage. The vendor CVSS 4.0 vector (AV:N/AC:H/PR:L/UI:N/VC:H/VI:H/VA:H, 7.7) is credible: network-reachable, but with meaningful complexity (AC:H) because the attacker's identity-provider identifier must begin with the victim's full 50-character ExternalId, and low privilege (PR:L) because the attacker must be a provisionable identity in the same SSO/IdP context. Real-world risk signals are mixed-to-elevated: publicly available exploit code exists (researcher write-up at sanjokkarki.com.np) and a vendor patch is confirmed (v2026.5.0, PR #7501, commit 27ae3d54), but there is no EPSS score provided and no CISA KEV listing, so there is no evidence of active exploitation - this is 'publicly available exploit code exists,' not 'in the wild.' The impact ceiling (takeover of a targeted organization member) is high, but exploitation is targeted and condition-bound rather than mass-automatable: the attacker must know/prefix a specific victim's identifier and the deployment must use SQL Server. Net: a real priority for self-hosted Bitwarden SSO deployments on MSSQL, but the AC:H + PR:L + narrow trigger keep it below wormable-critical. |
| Exploit ScenarioDerived | In a self-hosted Bitwarden Server on SQL Server using organization SSO, an attacker who can register or influence their identity-provider ExternalId crafts an identifier that begins with a victim organization member's full 50-character ExternalId plus extra characters. Because the stored procedure parameter is NVARCHAR(50), the attacker's identifier is silently truncated to match the victim's, and the SSO login resolves to the victim's account, yielding a victim-scoped access token. A public exploit write-up documenting this technique already exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 29, 2026
Authentication bypass in self-hosted Bitwarden Server versions 2025.6.0 through 2026.5.0 backed by Microsoft SQL Server allows a user with a provisionable SSO identity to obtain a victim-scoped access token. The stored procedure User_ReadBySsoUserOrganizationIdExternalId declares its @ExternalId parameter as NVARCHAR(50) while the column it queries stores NVARCHAR(300), so an identity-provider ExternalId whose value begins with a victim organization member's full 50-character identifier is silently truncated and matches that member's record during SSO login. Exploitation requires organization SSO login enabled on a SQL Server deployment plus knowledge or control of an IdP identifier sharing the victim's 50-character prefix (CVSS vector shows PR:L), making the attack targeted rather than broadly opportunistic; publicly available exploit code exists but there is no CISA KEV confirmation of active exploitation. The flaw is fixed in Bitwarden Server 2026.5.0, and despite the supplied 'Information Disclosure' tag its actual outcome is account takeover (CWE-303).
RemediationAI
Upgrade Bitwarden Server to version 2026.5.0 or later, which is the vendor-released fix; the underlying change is commit 27ae3d5455f723975fac03819eaeba8710666bc4 (pull request https://github.com/bitwarden/server/pull/7501), aligned with the v2026.5.0 release notes and the vendor advisory at https://www.vulncheck.com/advisories/bitwarden-server-authentication-bypass-via-sso-identifier-truncation. If patching must be deferred, the most effective compensating control is to disable organization SSO login on SQL Server-backed self-hosted instances (the trade-off being that members must fall back to master-password or other configured authentication until the upgrade completes) - do not simply rely on IdP-side hardening alone, since the flaw is in server-side parameter typing. A partial mitigation is to enforce, at the identity provider, that no two SSO ExternalId values share the same first 50 characters and to cap identifiers at 50 characters, which removes the truncation collision the exploit depends on, but it is fragile because it depends on IdP-side discipline and any future identifier longer than 50 characters reintroduces ambiguity. Audit existing IdP identifier lengths for values exceeding 50 characters and monitor authentication logs for a single ExternalId prefix producing logins across multiple member accounts; the public technical write-up at https://sanjokkarki.com.np/blog/bitwarden-sso-externalid-truncation documents the proof-of-concept, so treat unpatched SQL Server deployments as exploitable and prioritize the 2026.5.0 upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bitwarden's SSO login path on self-hosted deployments resolves an organization member by calling the SQL Server stored procedure User_ReadBySsoUserOrganizationIdExternalId and passing the identity provider's ExternalId (the user's unique identifier at the IdP, e.g. an object ID or subject claim). The procedure signature declares @ExternalId as NVARCHAR(50), but the database column holding SSO identifiers is NVARCHAR(300). SQL Server performs implicit conversion when binding a longer argument to a shorter nvarchar parameter and silently truncates without raising an error, so only the first 50 characters of the supplied identifier are ever compared. This is a textbook CWE-303 (Incorrect Implementation of Authentication Algorithm) failure: the parameter type no longer matches the data model, and the lookup degenerates from an exact-match identity check into a prefix match. An attacker who controls an IdP identity whose identifier begins with the full 50-character identifier of a targeted member therefore authenticates as that member and receives an access token scoped to the victim. The problem is specific to the Microsoft SQL Server code path where these typed stored procedures are used; the CPE string cpe:2.3:a:bitwarden:bitwarden_server:*:*:*:*:*:*:*:* covers the affected server package versions before 2026.5.0. Adjoining weakness classes include numeric/string truncation (CWE-197 family) feeding an authentication-decision error.
Know when Bitwarden gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network SSO endpoint (AV:N); AC:H because attacker must know and prefix the victim's exact 50-char identifier; PR:L for a provisionable IdP identity; full victim account takeover gives C:H/I:H, no availability impact (A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Bitwarden Server 2025.6.0 before 2026.5.0 declares the @ExternalId parameter of the User_ReadBySsoUserOrganizationIdExternalId stored procedure as NVARCHAR(50) while the column it queries stores NVARCHAR(300), silently truncating the SSO login identifier on SQL Server deployments and allowing a user whose identity-provider identifier begins with another organization member's full 50-character identifier to authenticate as that member and obtain a victim-scoped access token.
Technical POC Analysis
CWE-303 (Incorrect Implementation of Authentication Algorithm), realized as a type-width mismatch rather than a logic error.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Self-hosted Bitwarden Server deployments backed by Microsoft SQL Server and configured with organization SSO are exposed to a high-severity authentication bypass that could allow a targeted actor to obtain another user's vault-scoped access token. Publicly available exploit code exists, and although exploitation requires specific SSO and identifier conditions, a successful compromise could expose high-value credentials and secrets managed in Bitwarden. Leadership should treat this as a material identity and access management risk and prioritize patching affected instances.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Account takeover in self-hosted Bitwarden Server before 2026.6.0 lets a low-privileged organization member steal any oth
Provider service users in Bitwarden Server Cloud can hijack arbitrary organizations via unauthorized API endpoint access
Authentication bypass in Bitwarden Server versions prior to 2026.4.1 allows authenticated users with SCIM management pri
Bitwarden through 2023.2.1 offers password auto-fill when the second-level domain matches, e.g., a password stored for a
Privilege escalation in self-hosted Bitwarden Server before 2026.5.0 lets an authenticated organization member holding a
Bitwarden Windows desktop application versions prior to v2023.4.0 store biometric keys in Windows Credential Manager, ac
Audit log integrity across all Bitwarden Server organizations can be undermined by any authenticated user, who may injec
Broken access control in Bitwarden Server before 2026.5.0 exposes organization billing data to any authenticated user vi
Bitwarden Server prior to v2026.4.1 allows any authenticated user to write ciphers (encrypted credentials) into arbitrar
Malicious code injection in Bitwarden CLI 2026.4.0 distributed via npm for 90 minutes on April 22, 2026, enables remote
Bitwarden Server 1.35.1 allows SSRF because it does not consider certain IPv6 addresses (ones beginning with fc, fd, fe,
The Bitwarden server through 1.32.0 has a potentially unwanted KDF. Rated high severity (CVSS 7.5), this vulnerability i
EUVD-2026-88605
GHSA-2fcc-4gv4-mvr7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB