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

CVE-2026-105938: Apache Pulsar Auth Bypass Vulnerability

CVE-2026-105938 is an authentication bypass flaw in Apache Pulsar allowing unauthorized subscription operations. 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-105938 Overview

CVE-2026-105938 is an authorization bypass vulnerability [CWE-863] in Apache Pulsar's admin REST API. Several namespace-level, bundle-level, and topic-level operations that act on subscriptions failed to apply the subscription policies enforced elsewhere in the broker. When an operator configures the Prefix subscription authentication mode or subscription-level permissions, an authenticated user with only consume permission can clear backlogs, expire messages, or unsubscribe subscriptions they would otherwise be denied. The flaw also permits clearing geo-replication cursors, causing unreplicated messages to be skipped. The issue affects Apache Pulsar versions 2.8.0 through 4.0.13 and 4.1.0 through 4.2.4.

Critical Impact

Authenticated users with namespace or topic consume permission can tamper with subscription state and geo-replication cursors they should not be able to access, breaking subscription integrity without tenant admin or superuser rights.

Affected Products

  • Apache Pulsar 2.8.0 through versions before 4.0.14
  • Apache Pulsar 4.1.0 through versions before 4.2.5
  • Deployments using Prefix subscription authentication mode or subscription-level permissions

Discovery Timeline

  • 2026-10-21 - CVE-2026-105938 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-105938

Vulnerability Analysis

Apache Pulsar enforces subscription-level access control through two mechanisms. The Prefix subscription authentication mode requires a subscription name to begin with the role name of the connecting principal. Subscription permissions grant explicit roles access to a named subscription. Topic-level operations such as consuming, skipping messages, resetting cursors, and deleting subscriptions correctly apply these policies.

Several admin REST API endpoints did not consult the subscription policies before acting. The affected operations include namespace-level and bundle-level clear-backlog calls, namespace-level and bundle-level unsubscribe calls, and the topic-level expire-messages-for-all-subscriptions call. The default authorization provider only requires consume permission at the namespace or topic scope for these endpoints.

The impact is limited to subscription state integrity. Message contents are not disclosed, permissions and policies are not altered, and broker availability is not affected. However, skipped messages can be permanently deleted once retention expires, and geo-replication cursors can be advanced so pending cross-cluster messages are lost.

Root Cause

The underlying defect is a missing authorization check [CWE-863] in the admin REST API handlers that process bulk and bundle-scoped subscription operations. These handlers short-circuit after validating namespace or topic consume permission and never evaluate the per-subscription policy that the topic-level handlers apply.

Attack Vector

An attacker must be authenticated to the Pulsar broker and must hold consume permission on the target namespace or topic. The attacker then issues an admin REST API request to the clear-backlog, unsubscribe, or expire-messages endpoint targeting a subscription they are not authorized to manage. The broker executes the request without evaluating the Prefix mode or subscription grant policies.

For exploitation details, refer to the Apache Pulsar CVE-2026-105938 advisory and the Apache mailing list thread.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-105938

Indicators of Compromise

  • Admin REST API calls to clearBacklog, unsubscribe, or expireMessages endpoints at the namespace or bundle scope from non-administrative roles.
  • Unexpected cursor advancement on subscriptions governed by the Prefix subscription authentication mode.
  • Geo-replication cursors moved forward without a corresponding administrative action, resulting in skipped messages at the remote cluster.

Detection Strategies

  • Audit broker access logs for admin REST API requests to subscription-management endpoints and correlate with the authenticated role.
  • Compare request subscription names against the role prefix in deployments using Prefix subscription authentication mode to surface violations.
  • Alert on clear_backlog or unsubscribe events issued by principals that are not tenant admins or superusers.

Monitoring Recommendations

  • Enable verbose authorization logging on Pulsar brokers and forward events to a centralized analytics platform for review.
  • Track geo-replication lag and cursor position metrics; sudden forward jumps warrant investigation.
  • Baseline normal admin API usage per tenant so anomalous subscription-management activity triggers alerts.

How to Mitigate CVE-2026-105938

Immediate Actions Required

  • Upgrade Apache Pulsar 4.0.x deployments to 4.0.14 or later.
  • Upgrade Apache Pulsar 4.1.x and 4.2.x deployments to 4.2.5 or later.
  • Upgrade every broker in a cluster before relying on the restored namespace-level restrictions, because unpatched brokers still skip the policy check for internal per-bundle requests.
  • Review existing subscription permissions and Prefix subscription authentication mode configuration to confirm expected enforcement after upgrade.

Patch Information

Fixed releases apply subscription policies to named subscriptions at the namespace and bundle scope. Bulk operations issued by non-admin users only act on subscriptions the user may access. Clearing the backlog of geo-replication cursors now requires tenant admin or superuser access. Topic-level subscription operations apply the policies for all authentication data types, including the anonymous user role. See the Apache Pulsar security advisory for release details.

Workarounds

  • Restrict network access to the broker's admin REST API so only trusted administrative clients can reach it.
  • Limit consume permission grants at the namespace and topic level to principals that are already trusted to manage all subscriptions in that scope.
  • Where feasible, disable the Prefix subscription authentication mode until the upgrade is complete, understanding that this changes the enforcement model.
bash
# Example network restriction using iptables to limit admin REST API access
# Replace 8080 with your broker's webServicePort and 10.0.0.0/24 with your admin network
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -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.