CVE-2026-138121: Kestra Insufficient Session Expiration
Published 2026-11-28 · Updated 2026-11-30 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update Kestra to 1.3.41 or later on your normal schedule.
What to do
- Update Kestra to version 1.3.41 or later. Versions from 1.3.24 up to, but not including, 1.3.41 are affected.
- Until it is patched, restrict network access to Kestra and review which accounts can log in to it.
- Shorten session lifetimes and invalidate existing sessions after updating.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Kestra | ≥ 1.3.24, < 1.3.41 | 1.3.41 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs administrative privileges, and no action by a victim is required. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on confidentiality, integrity and availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | High | The attacker needs administrative privileges. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness: Insufficient Session Expiration
Sessions stay valid longer than they should, so a stolen session token remains usable.
Classified as CWE-613.
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/kestra-io/kestra/commit/16fa03d159270624bf3059f3ea79b1e7d7edfc1a
- Patchhttps://github.com/kestra-io/kestra/commit/ec11cfe89464aa8d4321219721d57c5d828b7571
- Patchhttps://github.com/kestra-io/kestra/releases/tag/v1.3.41
- Patchhttps://github.com/kestra-io/kestra/releases/tag/v2.0.0
- Advisoryhttps://github.com/kestra-io/kestra/security/advisories/GHSA-94pv-f379-3gp3
- Advisoryhttps://www.vulncheck.com/advisories/kestra-1.3.24-before-1.3.41-insufficient-credential-expiration-via-basic-auth-token-cache
- Advisoryhttps://github.com/kestra-io/kestra/security/advisories/GHSA-94pv-f379-3gp3
- Referencehttps://github.com/kestra-io/kestra/blob/v1.3.40/webserver/src/main/java/io/kestra/webserver/services/BasicAuthService.java#L253-L260