Advisory

GHSA-22rr-f3p8-5gf8

Also known as: None

Summary

Directus affected by VM2 sandbox escape vulnerability

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-09-15 17:12 UTC
Modified
2023-09-15 17:12 UTC

Affected packages and fixes

directus

npm · All systems

Affected

  • introduced 0, fixed 10.6.0 (semver)

Fixed versions

10.6.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences