Upgrade to ECE 3.8.2 or ECE 4.0.2 immediately.
TL;DR
- What: Template injection in Jinjava inside ECE → command execution & data exfiltration by an authenticated admin.
- Severity: CVSS 9.1 (Critical).
- Affected: ECE 2.5.0–3.8.1 and 4.0.0–4.0.1.
- Fixed: Update to 3.8.2 or 4.0.2 now. No safe workaround.
Why this matters
Jinjava renders dynamic strings in the ECE control plane. If those strings are evaluated with unsafe variables, an admin-level user or compromised admin account can inject expressions to read secrets and run arbitrary commands on underlying hosts. Even if this requires admin privileges, it turns any stolen admin session into a full environment takeover risk.
What’s impacted
- Elastic Cloud Enterprise (ECE) versions 2.5.0–3.8.1 and 4.0.0–4.0.1.
- Not Elastic Cloud (SaaS) unless your ops explicitly run ECE.
- Multi-tenant ECE installs with broad admin roles have elevated blast radius.
Immediate actions (do these in order)
- Patch: Upgrade the ECE control-plane and coordinators to 3.8.2 or 4.0.2 (whichever matches your major track). Validate that all ECE services report the new version.
- Session hygiene: Invalidate all ECE admin sessions/tokens post-upgrade; rotate API keys tied to admin roles.
- Admin scope & MFA:
- Enforce MFA for all admin and provisioning accounts.
- Reduce global admin to the minimum; create scoped roles for day-to-day ops.
- Secrets & connectors: Rotate credentials stored or referenced by ECE (cloud keys, registry tokens, snapshot repos).
- Network guardrails: Restrict access to the ECE UI/API to jump hosts/VPN; place ECE behind WAF/ZTNA where possible.
Threat model & likely abuse path
- Attacker phishes/steals an ECE admin cookie or API token.
- They craft a malicious value that the Jinjava engine evaluates inside ECE.
- On render, the expression leaks secrets and/or reaches OS command execution → fleet-wide compromise.
How to check exposure
- Version check: If any control-plane component is below 3.8.2 or 4.0.2, you’re vulnerable.
- Log review (hunting hints): Search ECE and reverse proxy logs for suspicious template markers and eval patterns in admin-originated requests.
Look for unexpected
{{ ... }}
,{% ... %}
, long base64 blobs, or serialized payloads in parameters/metadata fields. - Host telemetry: On ECE hosts, review process trees spawning shells, curl/wget, or Java child processes from ECE services around admin UI activity.
Hardening after patch
- Move to break-glass admin: disable standing admin, use short-lived elevation with approvals.
- Implement pre-prod policy tests that fail CI if dangerous template tokens are present in configuration content.
- Enable least-privilege for snapshot repos and object storage; enforce VPC endpoints and KMS-bound keys.
FAQ
Is there a safe mitigation instead of upgrading?
No reliable mitigation. Upgrade is the only safe path, followed by credential/session rotation.
Does this impact Elastic Cloud (managed SaaS)?
This CVE targets ECE (self-hosted). Check your architecture if unsure.
Trusted references
- National Vulnerability Database – CVE-2025-37729 overview (CVSS 9.1, admin required): NVD
- Advisory roundups confirming affected/fixed versions & “patch now”: SecurityOnline, Purple-Ops
More “Patch Now” Alerts · Cloud Security · CVE Coverage
Comments
Post a Comment