CVE-2026-138121 in Kestrainfo

Summary

by MITRE • 11/28/2026

Kestra 1.3.24 before 1.3.41 contains an insufficient credential expiration vulnerability that allows holders of a revoked administrator password to keep authenticating on peer webserver nodes through BasicAuthService's process-local verified-token cache. Attackers whose token remains cached on a peer node can call POST /api/v1/{tenant}/basicAuth to overwrite the shared administrator credentials and lock out the legitimate administrator.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in Kestra versions prior to 1.3.41 represents a critical flaw in session management and credential lifecycle handling within distributed web server architectures. Specifically, this issue stems from an insufficient expiration mechanism for authentication tokens managed by the BasicAuthService component. In typical multi-node deployments, such as those involving peer webserver nodes, maintaining consistent state across instances is essential for security integrity. However, Kestra 1.3.24 through 1.3.40 utilizes a process-local verified-token cache to optimize performance and reduce redundant authentication checks against the primary identity provider or database. While this caching strategy improves operational efficiency, it introduces a significant window of exposure where revoked credentials remain valid on individual nodes that have not yet refreshed their local state from the central authority.

The technical core of this vulnerability lies in the decoupling between credential revocation events and token cache invalidation processes. When an administrator password is changed or revoked at the primary level, the change propagates to other services but does not immediately purge existing tokens stored in the memory of peer webserver nodes. These peers continue to accept authentication requests based on their local cached state, effectively ignoring the global revocation directive until a cache refresh occurs or the token naturally expires according to its original lifespan settings. This discrepancy allows an attacker who has obtained administrative credentials prior to revocation to maintain persistent access even after legitimate administrators have attempted to secure the system by changing passwords. The lack of real-time synchronization between the central credential store and distributed node caches creates a blind spot that adversaries can exploit for prolonged unauthorized access.

The operational impact of this vulnerability is severe, particularly regarding account takeover and denial of service conditions. An attacker leveraging this flaw can authenticate as an administrator on any peer node where their token remains cached. Once authenticated, they have the capability to invoke the POST /api/v1/{tenant}/basicAuth endpoint with malicious intent. By overwriting the shared administrator credentials, the attacker effectively locks out legitimate administrators from accessing the platform. This action not only results in a complete loss of administrative control but also serves as a persistence mechanism for further exploitation within the environment. The ability to lock out defenders while retaining access significantly complicates incident response efforts and increases the potential damage caused by the breach, including data exfiltration or system manipulation without detection.

From a classification perspective, this vulnerability aligns with CWE-613, which denotes Insufficient Session Expiration, as well as aspects of CWE-287 related to Improper Authentication due to reliance on cached credentials rather than current state verification. In the context of the MITRE ATT&CK framework, this behavior facilitates Initial Access through Valid Accounts and enables Persistence via Account Manipulation or Credential Dumping depending on subsequent actions taken by the attacker. The exploitation chain demonstrates how architectural decisions regarding caching can inadvertently undermine security controls if not paired with robust invalidation strategies that account for distributed system dynamics.

To mitigate this vulnerability, organizations running affected versions of Kestra must upgrade immediately to version 1.3.41 or later, where these issues have been addressed through improved token lifecycle management and cache synchronization protocols. For environments unable to patch instantly, implementing a more frequent cache refresh interval can reduce the window of exposure, although it may impact performance. Additionally, deploying Web Application Firewalls with rules that detect anomalous authentication patterns following credential changes can provide an additional layer of defense. It is also recommended to enforce strict monitoring on administrative account activities and configure alerts for any successful login attempts using credentials known to have been recently revoked or changed. Regular audits of session tokens and ensuring that distributed nodes are synchronized with the primary identity source in near real-time are critical best practices to prevent similar issues in future deployments.

Responsible

VulnCheck

Reservation

11/28/2026

Disclosure

11/28/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!