Skip to main content

Kestra EUVDEUVD-2026-137530

| CVE-2026-138121 HIGH
Insufficient Session Expiration (CWE-613)
2026-11-28 VulnCheck GHSA-3pm5-4cwg-5rmr
7.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain valid Kestra admin credentials
  2. Delivery
    Authenticate to peer node B, warming process-local token cache
  3. Exploit
    Legitimate admin rotates password via node A
  4. Install
    Revoked credential still accepted by node B cache
  5. C2
    POST attacker-chosen password to /api/v1/{tenant}/basicAuth on node B
  6. Execute
    Attacker password persisted to shared settings database
  7. Impact
    Legitimate admin locked out cluster-wide across all nodes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
Exploitation Conditions

Exploitation requires all four of the following conditions to hold simultaneously: (1) A Kestra HA deployment with at least two webserver nodes sharing the same settings database - single-node deployments are not vulnerable because there is no peer-node cache divergence; (2) Basic authentication must be explicitly enabled, as it is a configured feature of Kestra's OSS deployment mode and is not the default authentication mechanism in cloud or enterprise tiers; (3) the attacker must have previously possessed a valid administrator credential and made at least one authenticated request through the target peer node before the legitimate administrator rotates the password, so that the peer node's process-local AtomicReference cache holds the now-revoked token hash; (4) the attacker must retain network access to any peer node's API endpoint after the password rotation event. The flaw does not allow external unauthenticated attackers to exploit it; the attacker must have been a former administrator of the cluster. The exploit window on a given peer node persists until the node is restarted or its process-local cache is otherwise cleared - the fix addresses this by binding the cache entry to a credentials fingerprint derived from the shared database on every cache hit.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:H/UI:N) yields a score of 7.5 (High). Real-world risk is meaningfully bounded by the attack prerequisites: PR:H confirms the attacker must have previously held valid administrator credentials, and AC:H combined with AT:P reflects the HA-specific cache state that must be in place before password rotation occurs - single-node deployments are entirely unaffected. These constraints make this a targeted insider or post-compromise scenario rather than a broadly exploitable flaw. The decision label of 'this_week' aligns with this read: a genuine, impactful vulnerability in affected deployments but not an emergency requiring immediate out-of-band response. No CISA KEV listing is present and no EPSS score was supplied, so exploitation breadth cannot be quantified from available signals. However, a complete, plug-and-play bash PoC demonstrating the full end-to-end Docker-based attack chain was published in the GHSA advisory (GHSA-94pv-f379-3gp3), substantially lowering the barrier to exploitation for anyone who previously held admin access. The 'Information Disclosure' tag in the input does not match the actual impact - this is an authentication persistence and credential takeover vulnerability, not an information disclosure issue.

Exploit ScenarioDerived

An attacker who previously held valid Kestra administrator credentials authenticates through peer node B in a multi-node HA cluster, warming the process-local BasicAuthService token cache on that node. After the legitimate administrator rotates the password on node A, the revoked token remains accepted by node B due to the stale per-process cache, which had no cross-node invalidation mechanism. The attacker then calls POST /api/v1/{tenant}/basicAuth through node B - still accepted due to the cached token - to replace the centrally stored administrator password in the shared database, locking out the legitimate administrator across the entire cluster with persistence that survives node restarts. A complete, functional bash PoC script was published in the GHSA advisory and confirmed this full attack chain against Kestra v1.3.30.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 28, 2026

Kestra 1.3.24 through 1.3.40 can keep honoring a revoked administrator Basic-auth password on peer webserver nodes in a high-availability deployment, because each node caches the last verified token in a process-local AtomicReference rather than re-checking the password against the shared settings database. An attacker who is a former administrator - authenticated (PR:H) and previously warmed the cache on a peer node - can reuse the stale credential to call POST /api/v1/{tenant}/basicAuth on that node and overwrite the centrally stored administrator credentials, locking out the legitimate operator across the cluster. The CVSS 4.0 base score is 7.5 (High) with AC:H and AT:P reflecting the multi-node, prior-credential prerequisites; a public proof-of-concept reproduction script accompanies the upstream GHSA advisory, and no active exploitation is confirmed (not in CISA KEV).

RemediationAI

Vendor-released patch: upgrade to Kestra 1.3.41 or 2.0.0 (both branches are fixed per the advisory GHSA-94pv-f379-3gp3; the code changes are in commits 16fa03d159270624bf3059f3ea79b1e7d7edfc1a and ec11cfe89464aa8d4321219721d57c5d828b7571). After upgrading, the Basic-auth change endpoint POST /api/v1/{tenant}/basicAuth requires a correct currentPassword whenever credentials already exist, and cache entries are bound to a credentials fingerprint so a rotation on any node takes effect on peers' next request; API clients or automation that previously sent only username and password to that endpoint must be updated to include currentPassword or they will receive a validation error. For deployments that cannot upgrade immediately, the exposure window described by the assessed conditions lasts until a peer node is restarted or its process-local verified-token cache is otherwise cleared, so restarting every webserver node after any administrator password rotation will drop cached revoked tokens - with the trade-offs of a brief per-node outage and the fact that the window reopens on the next rotation unless restarts are repeated every time; restricting network access to the /api/v1/{tenant}/basicAuth endpoint to trusted management networks also shrinks the attack surface but does not fix the stale-cache behavior and can break legitimate automation. Until patched, treat any departed or demoted administrator as still holding cluster admin access on any node they previously authenticated to.

Affected VersionsENISA

kestra 1.3.24 <1.3.41

Affected Packages

euvd kestra fix: 1.3.41

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kestra is a JVM/Java workflow orchestration platform whose webserver component is deployed in HA as multiple nodes sharing one settings database (e.g., PostgreSQL). BasicAuthService in webserver/src/main/java/io/kestra/webserver/services/BasicAuthService.java stores bcrypt-strength hashes at rest but, for per-request performance, memoizes the SHA-256 of the last successfully verified token in a process-local AtomicReference<String> so bcrypt verification only runs on a cache miss. That design assumes a single source of truth about credential validity per process; in a multi-node deployment, the cache is cleared by save() only on the node where the password was changed, leaving peer nodes' caches intact indefinitely - a CWE-613 Insufficient Session Expiration flaw. The upstream fix (commits 16fa03d159270624bf3059f3ea79b1e7d7edfc1a and ec11cfe89464aa8d4321219721d57c5d828b7571) replaces the plain token hash with a CachedToken record keyed on both the token SHA-256 and a credentials fingerprint re-derived from configuration() on every fast-path check, so a rotation on any node invalidates the cache on the next request to every other node without a cross-node signal. It additionally adds a currentPassword field to BasicAuthCredentials and a validateCurrentPassword() check that bypasses the cache, wire enforcement in MiscController so that authenticated callers must prove knowledge of the current password before saving new basic-auth credentials, and a ValidationErrorException path that returns a 400-family rejection instead of the previous 204 when the current password is wrong or missing.

Know when Kestra gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.5 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.6 MEDIUM

PR:H required because prior administrator credential possession is a hard prerequisite; AC:H reflects HA deployment and pre-rotation cache-warming requirement; S:U because all impact stays within the Kestra credential store.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-613, insufficient session expiration, in Kestra's own webserver/src/main/java/io/kestra/webserver/services/BasicAuthService.java.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in Kestra (versions 1.3.24 through 1.3.40) allows a revoked administrator to reuse a stale password on HA peer nodes, potentially overwriting central administrator credentials and locking out legitimate operators cluster-wide. This affects organizations running Kestra in multi-node deployments, exposing them to operational disruption and unauthorized access if a former admin retains knowledge of the old password. Leadership should care because a successful attack could halt business processes and require recovery efforts, with potential reputational and compliance implications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 53% exploitable
Prevalence
Low
niche open-source workflow orchestration tool, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Related Vulnerabilities in Kestra Authentication and XSS Vulnerabilities

View all 3

More in Kestra

View all
CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-53576 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution in Kestra orchestration platform before 1.0.45 and 1.3.21 lets anonymous attackers

CVE-2026-55839 HIGH POC
8.7 Aug 18

Stored cross-site scripting in Kestra's custom Markdown renderer (versions before 1.3.24) allows any authenticated user

CVE-2026-29082 HIGH POC
7.3 Mar 06

Kestra versions 1.1.10 and earlier allow authenticated users to perform cross-site scripting (XSS) attacks through the e

CVE-2026-34612 CRITICAL
9.0 Apr 03

SQL injection in Kestra orchestration platform's flow search endpoint (GET /api/v1/main/flows/search) enables remote cod

CVE-2026-55069 HIGH
8.7 Jun 26

Offline administrator password recovery in Kestra OSS (versions prior to 1.3.24) stems from its BasicAuth component stor

CVE-2026-45807 HIGH
7.7 Jun 26

Arbitrary file read in Kestra orchestration platform (versions prior to 1.0.43 and 1.3.19) lets an authenticated user wi

CVE-2026-49984 HIGH
7.7 Jun 26

Authenticated path traversal in Kestra's local internal-storage backend (versions prior to 1.0.45 and 1.3.23) lets any l

CVE-2026-33664 HIGH
7.3 Mar 26

Cross-site scripting in Kestra orchestration platform versions up to 1.3.3 enables authenticated flow authors to inject

CVE-2026-48129 MEDIUM
6.5 Jun 19

Path traversal in Kestra's `inputFiles` task mechanism allows remote attackers to write arbitrary files to the worker fi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy