agoric/realms-shim · Security
Sandbox Breakout in realms-shim
- GHSA ID
- GHSA-6jg8-7333-554w
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Versions of realms-shim prior to 1.2.0 are vulnerable to a Sandbox Breakout. Reflect.construct can be used on the sandboxed Function constructor to reach the prototypes of the primal Realm, which may allow an attacker to escape the sandbox and execute arbitrary code.
Recommendation
Upgrade to version 1.2.0 or later.
References
- https://github.com/Agoric/realms-shim/security/advisories/GHSA-6jg8-7333-554w ↗
- https://github.com/advisories/GHSA-6jg8-7333-554w ↗
- https://www.npmjs.com/advisories/1180 ↗
- https://www.npmjs.com/advisories/1181 ↗
- https://www.npmjs.com/advisories/1182 ↗
- https://www.npmjs.com/advisories/1190 ↗
- https://www.npmjs.com/advisories/1191 ↗
- https://snyk.io/vuln/SNYK-JS-REALMSSHIM-471680 ↗