Skip to content
Threat Feed
critical advisory

Authentication Bypass in Bastillion via Path Prefix Misrouting

An authentication bypass vulnerability (CVE-2026-75627) in Bastillion versions 5.1.0 and earlier allows unauthenticated attackers to access administrative controllers via path prefix manipulation, enabling full control over managed SSH infrastructure.

CVE search metadata

CVE search record: CVE-2026-75627. Severity: critical. CVSS: 9.8. KEV: no. Product: Bastillion (5.1.0). Brief: Authentication Bypass in Bastillion via Path Prefix Misrouting. Brief link: https://feed.craftedsignal.io/briefs/2026-08-bastillion-auth-bypass/

Bastillion, an open-source SSH gateway, contains a critical authentication bypass vulnerability (CVE-2026-75627) in its controller dispatcher logic. The vulnerability, rooted in improper validation of request URI paths within the BaseKontroller.java component, allows an unauthenticated attacker to bypass authentication filters by prefixing legitimate administrative request URIs with arbitrary path segments.

By successfully navigating this dispatcher flaw, an attacker gains unauthorized access to administrative functions. This access allows the actor to read sensitive user listings, create new manager accounts with elevated privileges, and register new managed systems within the Bastillion environment. Given Bastillion's role as a gateway for SSH access, this exploit grants attackers potential control over the entire managed server fleet. The vulnerability affects all versions of Bastillion up to and including 5.1.0. Defenders must prioritize patching, as this vulnerability allows complete compromise of the Bastillion instance without prior authentication.

Attack Chain

  1. Attacker performs reconnaissance to identify the presence of Bastillion and its administrative endpoints.
  2. Attacker crafts an HTTP request targeting an administrative controller (e.g., /user/list or /manager/create).
  3. Attacker prepends an arbitrary path segment to the URI, triggering the flaw in the dispatcher's authentication filter logic.
  4. The Bastillion application fails to validate the manipulated URI path and treats the request as authorized.
  5. Attacker executes the administrative function, such as creating a new privileged manager account.
  6. Attacker authenticates with the newly created manager account.
  7. Attacker uses the administrative interface to register additional managed systems or modify existing configurations.
  8. Attacker leverages the compromised gateway to initiate unauthorized SSH connections to the managed backend infrastructure.

Impact

Successful exploitation of CVE-2026-75627 results in a complete compromise of the Bastillion SSH gateway. An attacker can create administrative accounts, gain visibility into user data, and establish unauthorized persistence within the infrastructure. This allows for the exfiltration of credentials or the execution of arbitrary commands on the managed SSH fleet, potentially leading to widespread lateral movement and system takeover.

Recommendation

  • Immediately upgrade Bastillion to a patched version beyond 5.1.0 to resolve CVE-2026-75627.
  • Implement strict network-level access control lists (ACLs) to restrict access to the Bastillion administrative interface to known management subnets.
  • Enable web application firewall (WAF) rules to detect and block requests containing irregular path structures or suspicious path prefixes aimed at administrative controllers.
  • Deploy the Sigma rules below to monitor for attempts to access internal administrative controllers from unauthorized or unauthenticated sources.

Immediate actions

Upgrade Bastillion to the latest version to mitigate CVE-2026-75627.

IT Operations 24h

Mitigations

Restrict network access to the Bastillion management interface via firewall rules.

immediate IT Operations

CVE-2026-75627

Detection coverage 1

Detects CVE-2026-75627 Exploitation - Authentication Bypass Attempt

critical

Detects potential exploitation of CVE-2026-75627 where an attacker attempts to bypass authentication via abnormal path prefixes directed at administrative controllers.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →