CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-40264

CVE-2026-40264: Cross-Namespace Boundary Bypass via Token Accessor in OpenBao

Amit Schendel
Amit Schendel
Senior Security Researcher

Apr 21, 2026·5 min read·315 visits

Executive Summary (TL;DR)

A flaw in OpenBao's `lookupByAccessor` function allows tenant administrators to renew or revoke token accessors across namespace boundaries, breaking multi-tenant isolation.

OpenBao versions prior to 2.5.3 contain an improper namespace context switching vulnerability. An authenticated attacker with administrative privileges in one namespace can perform renewal or revocation operations on token accessors belonging to different namespaces, effectively bypassing multi-tenant isolation boundaries.

Vulnerability Overview

OpenBao uses namespaces to enforce cryptographic and administrative multi-tenant isolation. The token store manages authentication lifecycle events using token accessors, which act as non-sensitive identifiers mapped to actual secrets. This architecture allows operators to revoke or renew tokens without handling the highly sensitive authentication material directly.

CVE-2026-40264 is a boundary enforcement bypass vulnerability categorized as CWE-1259. It is located in the token store's accessor lookup logic. Versions prior to 2.5.3 fail to enforce namespace isolation when processing accessor-based operations, allowing cross-tenant interaction.

The flaw permits an administrator in one tenant to cross namespace boundaries if they possess a valid token accessor ID from another tenant. The impact is restricted to token renewal and revocation operations. It does not expose the underlying cryptographic token secrets or allow the attacker to assume the identity of the targeted token.

Root Cause Analysis

The root cause resides in the lookupByAccessor function within the vault/token_store.go file. This function retrieves internal token metadata using the provided non-sensitive accessor string. The lookup process is an essential prerequisite for lifecycle operations such as renewal and revocation.

Prior to version 2.5.3, the function implemented automatic context switching. When an accessor was successfully retrieved from the storage backend, the code evaluated the namespace associated with that accessor, referred to internally as accessorNS.

If the accessorNS did not match the namespace of the current API request context, the system dynamically overwrote the internal request context with the target namespace. This behavior implicitly trusted the accessor ID over the authenticated user's authorization boundaries, creating an unauthorized cross-namespace execution path.

Code Analysis

The vulnerable implementation prioritized operational flexibility over strict isolation. By silently modifying the namespace pointer, the system allowed subsequent authorization checks to execute within the context of the target namespace. The context switch occurred seamlessly during the lookup phase, processing the request as if it originated from the victim namespace.

The patch implemented in commit 059cc5950303688335d5c8ab9af8e453795d693a replaces this implicit context switch with an explicit validation check. The code now strictly enforces that the accessor's namespace must match the requesting user's namespace context.

The remediation introduces a strict comparison logic block. If the evaluation condition evaluates to true, the function immediately returns an error, successfully neutralizing the cross-tenant bypass.

// vault/token_store.go (Patched Logic)
if accessorNS != nil && accessorNS.ID != ns.ID {
    return nil, fmt.Errorf("cannot lookup token in different namespace")
}

Exploitation Methodology

Exploiting CVE-2026-40264 requires specific preconditions, categorizing it as an attack with low complexity but high prerequisite requirements. The adversary must possess administrative privileges within a valid OpenBao namespace. This establishes the necessary authenticated session required to interact with the token management endpoints.

The attacker must also acquire a valid token accessor ID belonging to a separate namespace. Token accessors are routinely recorded in application logs, audit trails, and monitoring systems. Their presence in these secondary systems makes them substantially easier to obtain than the cryptographic tokens they represent.

The exploitation sequence begins with the attacker issuing an HTTP request to an accessor management endpoint, such as sys/auth/token/revoke-accessor. The request payload contains the leaked accessor ID from the victim tenant, while the HTTP headers carry the authentication context of the attacker's tenant.

OpenBao processes the request, triggers the flawed lookup logic, and executes the revocation or renewal operation against the victim's token. The system processes the request successfully without requiring explicit authorization in the victim namespace, resulting in localized operational disruption.

Impact Assessment

The direct security impact of CVE-2026-40264 is strictly limited to token availability and lifecycle management. An attacker cannot use this vulnerability to extract secrets, read the actual token strings, or escalate privileges within the target namespace. The confidentiality and integrity of the data protected by OpenBao remain intact.

A malicious actor can force the premature revocation of critical service tokens in neighboring tenants. This action disrupts dependent applications and infrastructure by terminating their authenticated sessions. The result is a localized denial-of-service condition affecting specific workloads relying on the revoked tokens.

Alternatively, an attacker can forcefully renew expiring tokens in other namespaces. This action extends the operational window of potentially compromised or deprecated tokens, assuming the tokens are renewable and remain within their maximum time-to-live boundaries.

The vulnerability carries a CVSS 4.0 base score of 2.0, reflecting the high privilege requirements and limited operational impact. The EPSS score of 0.00036 indicates a statistically negligible probability of exploitation in the wild within the immediate timeframe.

Remediation and Mitigation

The definitive resolution for CVE-2026-40264 is upgrading OpenBao deployments to version 2.5.3 or later. The patch completely eliminates the vulnerable context-switching logic within the token store subsystem, replacing it with explicit boundary validation. Organizations operating multi-tenant environments should prioritize this upgrade.

Organizations unable to immediately apply the patch cannot mitigate this flaw through OpenBao configuration changes. The vulnerability resides in core routing logic, rendering access control list modifications ineffective. Upgrading the binary is the sole technical remediation.

Defenders must monitor OpenBao audit logs for cross-namespace management attempts. Anomalous patterns include auth/token/revoke-accessor or auth/token/renew-accessor requests originating from administrative accounts that do not typically manage the targeted services. Analyzing these access patterns helps identify internal reconnaissance or exploitation attempts.

Accessor leakage prevention serves as a critical defense-in-depth measure. Security teams must review logging configurations to ensure accessors are treated as sensitive metadata. Restricting access to operational logs to authorized personnel significantly increases the difficulty of fulfilling the attack prerequisites.

Official Patches

OpenBaoOpenBao v2.5.3 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
2.0/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS Probability
0.04%
Top 89% most exploited

Affected Systems

OpenBao

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenBao
OpenBao
< 2.5.32.5.3
AttributeDetail
CWE IDCWE-1259
Attack VectorNetwork
CVSS 4.0 Score2.0 (Low)
EPSS Percentile10.53%
ImpactDenial of Service (Token Revocation)
Exploit StatusUnexploited
Privileges RequiredHigh (Administrator)

MITRE ATT&CK Mapping

T1531Account Access Removal
Impact
T1078Valid Accounts
Initial Access
CWE-1259
Improper Restriction of Security Token Assignment

Improper Restriction of Security Token Assignment

Vulnerability Timeline

Fix commit merged and v2.5.3 released
2026-04-20
GitHub Advisory GHSA-p49j-v9wc-wg57 published
2026-04-20
CVE-2026-40264 published by NVD
2026-04-21

References & Sources

  • [1]GitHub Advisory GHSA-p49j-v9wc-wg57
  • [2]Fix Commit
  • [3]Pull Request #2934
  • [4]CVE.org Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 6 hours ago•CVE-2026-47296
7.8

CVE-2026-47296: Elevation of Privilege via SQL Injection in Microsoft SQL Server Internal Stored Procedures

CVE-2026-47296 is a high-severity local Elevation of Privilege (EoP) vulnerability in Microsoft SQL Server. The issue stems from the improper neutralization of special elements within internal database routines, allowing a low-privileged authenticated user to execute arbitrary database queries with the privileges of the database owner or system administrator. Microsoft has addressed this vulnerability in its July 2026 security updates.

Amit Schendel
Amit Schendel
5 views•5 min read
•about 6 hours ago•CVE-2026-47295
8.8

CVE-2026-47295: SQL Injection and Privilege Escalation in Microsoft SQL Server

CVE-2026-47295 is a high-severity elevation of privilege vulnerability in Microsoft SQL Server (2016 through 2025). An authenticated, low-privileged attacker can execute remote SQL injection commands within system stored procedures to elevate permissions to sysadmin.

Amit Schendel
Amit Schendel
7 views•6 min read
•2 days ago•GHSA-8RQH-VXPR-X77P
4.3

GHSA-8RQH-VXPR-X77P: Stored Cross-Site Scripting via MIME Type Spoofing in Plone REST API

A stored Cross-Site Scripting (XSS) vulnerability exists within plone.restapi, the REST API package for Plone content management system. By supplying a spoofed input MIME type (text/x-html-safe), an attacker can mislead the rendering layer (plone.app.textfield) into assuming that the supplied content is already sanitized. This causes the system to skip the safe_html transform, allowing arbitrary JavaScript to execute in the victim's browser when they view the compromised page.

Amit Schendel
Amit Schendel
11 views•7 min read
•2 days ago•CVE-2026-11400
8.0

CVE-2026-11400: Privilege Escalation via Untrusted Search Path in AWS Advanced JDBC Wrapper

An untrusted search path vulnerability in the GlobalDatabasePlugin component of the AWS Advanced JDBC Wrapper for Amazon Aurora PostgreSQL allows authenticated, low-privilege database users to hijack administrative session queries. By defining a custom function in a writable schema such as the public schema, an attacker can hijack queries executed automatically during driver-level topology detection. When a highly privileged database user connects to the database utilizing an affected version of the wrapper, the custom function executes under their security context, enabling remote privilege escalation to rds_superuser.

Alon Barad
Alon Barad
12 views•6 min read
•2 days ago•CVE-2026-27771
8.2

CVE-2026-27771: Authentication Bypass and Information Disclosure in Gitea Container and Composer Registries

CVE-2026-27771 represents a critical security flaw in Gitea and Forgejo (up to and including version 1.26.1) involving missing authorization checks (CWE-862). Unauthenticated remote attackers can query, enumerate, and download private container images from the OCI-compliant container registry. Additionally, unauthorized users can retrieve private or internal source repository URLs via the Composer package registry metadata API. A public proof-of-concept exists, and threat metrics indicate highly active scanning and exploitation risks.

Alon Barad
Alon Barad
45 views•7 min read
•3 days ago•GHSA-CVPC-HCCG-WMW4
8.8

GHSA-CVPC-HCCG-WMW4: Missing Authorization in Formie Administrative Settings Allows Privilege Escalation

A missing authorization vulnerability in the Formie plugin for Craft CMS prior to version 3.1.28 allows low-privileged Control Panel users to read and modify sensitive administrative settings, configuration options, and third-party integrations.

Amit Schendel
Amit Schendel
8 views•6 min read