Host code execution via spread dynamic import
Published Aug 8, 2023 · Updated Oct 10, 2024
Improper input validation in EndoJS Endo SES allows attackers to escape guest confinement and execute code in the host context. The rejectImportExpressions transform's regular expression treats the three dots before import as property access, so a spread expression reaches the host's dynamic import. A guest Compartment needs no endowments; consequences depend on host module support, with Node.js data URLs enabling code execution and a restrictive web CSP limiting imports.
Summary
What happened
Improper input validation in EndoJS Endo SES allows attackers to escape guest confinement and execute code in the host context. The rejectImportExpressions transform's regular expression treats the three dots before import as property access, so a spread expression reaches the host's dynamic import. A guest Compartment needs no endowments; consequences depend on host module support, with Node.js data URLs enabling code execution and a restrictive web CSP limiting imports.
The record
- CVE
- CVE-2023-39532
- Published
- Aug 8, 2023
- Updated
- Oct 10, 2024
- Vendor
- EndoJS
- Product
- Endo
- Classifications
- CWE-20, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 8, 2023CVE publishedPublication date reported by the CVE source.
- Oct 10, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 0.13.0, < 0.13.5
- Affected versionversion=>= 0.14.0, < 0.14.5
- Affected versionversion=>= 0.15.0, < 0.15.24
- Affected versionversion== 0.16.0
- Affected versionversion== 0.17.0
- Affected versionversion=>= 0.18.0, < 0.18.7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Spread dynamic-import confinement-escape exampleproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo