CVE-2026-138120 in Kestra
Summary
by MITRE • 11/28/2026
Kestra 1.3.24 before 2.0.0 contains a timing side-channel vulnerability in BasicAuthService.isAuthenticated() that allows unauthenticated attackers to enumerate the administrator username. Attackers can send Basic-auth requests with candidate usernames to protected API endpoints and detect slower bcrypt checks to identify the valid account for password guessing.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/28/2026
The identified security flaw resides within Kestra versions prior to 2.0.0, specifically affecting the BasicAuthService.isAuthenticated() method which handles HTTP basic authentication. This vulnerability constitutes a timing side-channel attack where the application's response time varies depending on whether a provided username corresponds to an existing account in the system. The underlying technical mechanism relies on the use of bcrypt for password hashing and verification. Bcrypt is intentionally designed as a slow, computationally expensive key derivation function to resist brute-force attacks by making each guess take significant processing time. However, when authentication fails because the username does not exist, many implementations short-circuit or return an error immediately without performing the full hash computation. Conversely, if the username exists but the password is incorrect, the system proceeds to perform the complete bcrypt hashing operation before comparing it against the stored hash and returning a failure response. This discrepancy in processing time creates a measurable side channel that attackers can exploit.
An unauthenticated attacker can leverage this timing difference by sending a series of basic-auth requests with different candidate usernames to protected API endpoints while carefully measuring the server's response latency. By statistically analyzing these timings, an adversary can distinguish between responses generated for non-existent users and those generated for valid accounts. Once a valid administrator username is identified through this enumeration process, the attacker gains a critical foothold for subsequent password guessing or brute-force attacks. The ability to accurately enumerate usernames significantly reduces the search space for credential stuffing campaigns, thereby increasing the probability of successfully compromising an administrative account even if strong passwords are in use. This vulnerability effectively neutralizes one layer of defense by allowing attackers to filter out invalid credentials before expending resources on full authentication attempts against valid accounts.
The operational impact of this vulnerability is severe as it facilitates unauthorized access to sensitive system configurations and data managed by Kestra, which is an orchestration platform for complex workflows. Compromise of the administrator account could allow an attacker to execute arbitrary code within the infrastructure, exfiltrate confidential workflow definitions or secrets, disrupt critical business processes, or pivot further into the network. The attack requires no special privileges beyond basic HTTP access and can be performed remotely over standard web ports, making it accessible to a wide range of threat actors with moderate technical skills. This aligns with CWE-208 which describes observable timing discrepancy as an information exposure vulnerability, and maps directly to MITRE ATT&CK technique T1110.001 known as Brute Force: Password Guessing, specifically the enumeration phase that precedes actual credential stuffing or dictionary attacks.
To mitigate this risk, organizations running Kestra versions between 1.3.24 and 2.0.0 should upgrade to version 2.0.0 or later where this timing discrepancy has been addressed in the authentication logic. If immediate upgrading is not feasible, administrators can implement rate limiting on authentication endpoints to slow down automated enumeration attempts and increase the noise floor for timing analysis. Additionally, ensuring that all authentication failures return identical response times regardless of whether the username exists can help mitigate side-channel leaks, although this requires code-level changes rather than configuration adjustments. Monitoring logs for high volumes of failed login attempts from single IP addresses or user agents may also provide early detection indicators for such enumeration activities.