Read the docs

Authenticated RCE via safeEjs template sandbox escape using object shorthand

Priority MEDIUM 56CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · GHSA-64j3-qwjh-m4h4. Fix status from GitHub. Impact type from CWE-94.

Summary

An authenticated user with template or mapping privileges can escape the safeEjs template sandbox in OpenCTI and run arbitrary code in the platform process (CWE-94, CWE-693). The AST validation missed certain JavaScript object property syntax, so restricted runtime objects and constructors could be referenced during rendering without hitting the allow-list check. Evaluation runs for mapper configurations (CSVMAPPERS) and for customization templates such as email and notification templates, and an attacker can reach platform credentials, underlying databases and data access controls. The CVSS 4.0 base score is 9.4 (CRITICAL).

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

Description from the GitHub advisory

### Summary A template sandbox escape vulnerability in OpenCTI's server-side template evaluation mechanism (`safeEjs`) allows authenticated users with template or mapping privileges to bypass execution restrictions and run arbitrary code within the platform process context. ### Details The AST validation rules used to analyze and restrict expressions within the template sandbox contained a coverage gap regarding certain JavaScript object property syntax constructs. Consequently, restricted runtime objects and constructors could be referenced during template rendering without triggering sandbox allow-list validation. This template evaluation mechanism is invoked when evaluating mapper configurations (accessible to users with the `CSVMAPPERS` capability), as well as customization templates such as email or notification templates. ### Impact - **Vulnerability Class**: Code Injection / Sandbox Escape (CWE-94, CWE-693) - **Severity**: Critical - **Attacker Requirements**: Authenticated user with privileges allowing template configuration or testing (such as `CSVMAPPERS`, `SETTINGS_SETCUSTOMIZATION`, or `VIRTUAL_ORGANIZATION_ADMIN`). - **Consequences**: An authenticated attacker can execute arbitrary commands within the OpenCTI server environment, potentially accessing platform credentials, underlying databases, and circumventing data access controls. ### Patches This vulnerability has been resolved in OpenCTI **7.260527.0** by enhancing AST parsing coverage to strictly inspect all property definitions and expressions before evaluation.

Why it matters now

Fix Fixed opencti (opencti): >= 7.260527.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—opencti (opencti)>= 6.8.16, < 7.260527.0>= 7.260527.0Patch availableGHSA-64j3-qwjh-m4h4
  • opencti (opencti) Vendor— Affected >= 6.8.16, < 7.260527.0 Fixed in >= 7.260527.0 Patch available GHSA-64j3-qwjh-m4h4

Remediation

Upgrade OpenCTI to 7.260527.0 or later. Affected versions are >= 6.8.16 and < 7.260527.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

  • Fix · GHSA-64j3-qwjh-m4h4 opencti (opencti) Fixed in >= 7.260527.0 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-64j3-qwjh-m4h4

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences