Headline
GHSA-22rr-f3p8-5gf8: Directus affected by VM2 sandbox escape vulnerability
Impact
In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code. Within Directus this applies to the “Run Script” operation in flows being able to escape the sandbox running code in the main nodejs context.
Patches
Patched in v10.6.0 by replacing vm2
with isolated-vm
Workarounds
None
References
https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5
Package
npm directus (npm)
Affected versions
< 10.6.0
Patched versions
10.6.0
Description
Impact
In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code. Within Directus this applies to the “Run Script” operation in flows being able to escape the sandbox running code in the main nodejs context.
Patches
Patched in v10.6.0 by replacing vm2 with isolated-vm
Workarounds
None
References
GHSA-cchq-frgv-rjh5
References
- GHSA-22rr-f3p8-5gf8
- GHSA-cchq-frgv-rjh5
- directus/directus#19332
- directus/directus@2841564
br41nslug published to directus/directus
Sep 14, 2023
Published to the GitHub Advisory Database
Sep 15, 2023
Reviewed
Sep 15, 2023
Last updated
Sep 15, 2023