Skip to main content
Vulnerability Database/CVE-2026-108746

CVE-2026-108746: Vearch Privilege Escalation Vulnerability

CVE-2026-108746 is a privilege escalation vulnerability in Vearch 3.5.2 through 3.5.9 that allows authenticated users to bypass authorization controls and escalate privileges to cluster administrator access. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108746 Overview

CVE-2026-108746 is an incorrect authorization vulnerability [CWE-863] in Vearch versions 3.5.2 through 3.5.9. The flaw resides in the Role.HasPermissionForResources function, which ignores stored ReadOnly and None privilege levels for resources listed in a role. Authenticated non-root users can upsert and delete documents using read-only credentials. Attackers can also call PUT /roles to grant their own role WriteRead privileges, escalating toward cluster administrator access.

Critical Impact

Any authenticated user with a non-root role can bypass stored privilege checks, write to protected resources, and self-escalate to administrative access across the Vearch cluster.

Affected Products

  • Vearch 3.5.2
  • Vearch 3.5.3 through 3.5.8
  • Vearch 3.5.9

Discovery Timeline

  • 2026-10-11 - CVE-2026-108746 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108746

Vulnerability Analysis

Vearch implements role-based access control (RBAC) through the Role.HasPermissionForResources method defined in internal/entity/user.go. The method is supposed to compare the privilege level required by an incoming request against the privilege level stored for each resource in the role. In the affected versions, the function returns a positive authorization result whenever the resource name appears in the role, regardless of whether the stored privilege is ReadOnly, None, or WriteRead.

The net effect is a complete break of least-privilege enforcement. A role designed to grant document read access permits document mutation. A role that explicitly denies access through a None setting still authorizes operations once the resource is listed. The PUT /roles endpoint uses the same flawed check, so an authenticated attacker can rewrite their own role to include WriteRead for cluster resources.

Root Cause

The authorization logic in role_service.go and the privilege comparison in user.go fail to validate the stored privilege level against the required privilege level. Code paths that should reject lower privileges accept any membership of the resource in the role map. This is a classic incorrect comparison pattern mapped to [CWE-863] Incorrect Authorization.

Attack Vector

An attacker authenticates with any valid non-root account that holds at least one role referencing target resources. The attacker issues document write or delete requests against resources where only read was granted. For privilege escalation, the attacker sends a PUT /roles request to upgrade their role to WriteRead on cluster administration resources, achieving control over the Vearch cluster over the network.

See the HackMD RBAC Bypass Analysis and the VulnCheck Vearch Advisory for the full technical walkthrough and the vulnerable code regions in user.go and role_service.go.

Detection Methods for CVE-2026-108746

Indicators of Compromise

  • PUT /roles requests originating from non-root user sessions, especially when the request body elevates privileges to WriteRead.
  • Document upsert or delete operations issued by accounts whose assigned role only lists ReadOnly for the targeted space or database.
  • Unexpected modifications to role definitions in the Vearch master metadata store.
  • Access patterns from a single authenticated identity touching resources outside its documented scope.

Detection Strategies

  • Correlate Vearch API access logs with role definitions and alert when write verbs are used by accounts that only hold ReadOnly privileges.
  • Baseline PUT /roles activity and alert on any invocation by non-administrative identities.
  • Monitor the running Vearch version and flag deployments between 3.5.2 and 3.5.9 as vulnerable until patched.

Monitoring Recommendations

  • Centralize Vearch master and router logs in your SIEM to retain authorization decisions for investigation.
  • Track role mutation events and generate alerts on changes to privilege levels across sensitive resources.
  • Audit all accounts with any assigned role weekly and remove unused credentials to reduce the exploitable identity surface.

How to Mitigate CVE-2026-108746

Immediate Actions Required

  • Inventory all Vearch deployments and identify instances running 3.5.2 through 3.5.9.
  • Upgrade to a Vearch release that contains the fix for Role.HasPermissionForResources as published by the maintainers on the Vearch GitHub repository.
  • Rotate credentials for every non-root Vearch user and review role definitions for unauthorized WriteRead grants.
  • Revoke roles from service accounts that do not require persistent access to cluster resources.

Patch Information

Consult the VulnCheck Vearch Advisory and the Vearch GitHub repository for the fixed release version and commit information. Apply the fixed version in a staged rollout and verify RBAC enforcement with regression tests before promoting to production.

Workarounds

  • Restrict network access to the Vearch master API so that only trusted administration hosts can reach the /roles endpoint.
  • Disable or delete non-root user accounts until the upgrade is complete.
  • Place Vearch behind an authenticating reverse proxy that enforces an allowlist of HTTP methods per identity.
  • Enable detailed audit logging and route alerts for any PUT /roles activity to the on-call security team.
bash
# Configuration example: restrict Vearch master API at the network layer
# Replace 10.0.0.0/24 with the administrative subnet authorized to manage roles
iptables -A INPUT -p tcp --dport 8817 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8817 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.