PT-2023-27003 · Ses+1 · Ses+1

Corrideat

·

Published

2023-08-08

·

Updated

2023-08-15

·

CVE-2023-39532

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions SES versions 0.13.0 through 0.13.4 SES versions 0.14.0 through 0.14.4 SES versions 0.15.0 through 0.15.23 SES versions 0.16.0 through 0.16.0 SES versions 0.17.0 through 0.17.0 SES versions 0.18.0 through 0.18.6
Description There is a hole in the confinement of guest applications under SES that may manifest as either the ability to exfiltrate information or execute arbitrary code depending on the configuration and implementation of the surrounding host. Guest program running inside a Compartment with as few as no endowments can gain access to the surrounding host’s dynamic import by using dynamic import after the spread operator, like {...import(arbitraryModuleSpecifier)}. On the web or in web extensions, a Content-Security-Policy following ordinary best practices likely mitigates both the risk of exfiltration and execution of arbitrary code. Within an XS worker, an attacker can use the host’s module system to the extent that the host has been configured. Within Node.js, the attacker gains access to Node.js’s module system, allowing for arbitrary execution.
Recommendations For SES versions 0.13.0 through 0.13.4, update to version 0.13.5 or later. For SES versions 0.14.0 through 0.14.4, update to version 0.14.5 or later. For SES versions 0.15.0 through 0.15.23, update to version 0.15.24 or later. For SES versions 0.16.0 through 0.16.0, update to version 0.16.1 or later. For SES versions 0.17.0 through 0.17.0, update to version 0.17.1 or later. For SES versions 0.18.0 through 0.18.6, update to version 0.18.7 or later. As a temporary workaround, consider providing a suitably constrained Content-Security-Policy to mitigate most of the threat on the web. With XS, building a binary that lacks the ability to load modules at runtime mitigates the entirety of the threat by implementing fxFindModule in a file like xsPlatform.c that calls fxRejectModuleFile.

Exploit

Fix

RCE

Weakness Enumeration

Related Identifiers

CVE-2023-39532
GHSA-9C4H-3F7H-322R

Affected Products

Node.Js
Ses