# Sandbox escape via alternate module or URI

Does every path to a blocked capability pass the same policy check, or do alternate coders, delegates, or URI forms slip past?

_Area: Memory corruption and native code. Seen in 2 disclosed reports; latest 2026-03-30. Updated 2026-11-09._

## How it works
A sandbox or policy blocks a capability by naming one entry point: a module name, a URI scheme, a delegate binary. The assumption that breaks is that the named entry point is the only way to reach the capability. Any other module, coder, delegate, or URI spelling that reaches the same underlying operation runs without the check, and the sandbox is gone. The root cause is enforcement attached to a name rather than to the capability itself.

## Where it shows up
- Policy blocklists that name modules (e.g. PS) while sibling modules (PDF, EPSI, EPT) call the same delegate [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- In-process delegate invocation that skips the out-of-process delegate policy check [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Format detection by magic bytes or content that overrides the file extension [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- URI parsers that ignore or normalize characters, so a blocked scheme has an equivalent spelling [E3](https://bugbountylibrary.com/r/h1%3A2140.md)
- Chained primitives: a read primitive upgraded to write, then to code execution [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)[E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md)
- Separate bugs in adjacent components (JS engine, Wasm, kernel) each assumed to be contained by the layer above [E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md)

## How to review
Identify the capability being protected (file read, process spawn, host syscall) and enumerate every path that reaches it: every coder, delegate, module, URI form, and in-process vs out-of-process route. The invariant: every path to the capability passes the same authorization check, and the check is on the capability, not on a name. Verify the check cannot be skipped by content-based type detection, by alternate module names, or by ignored URI characters. For layered sandboxes, confirm each layer independently contains the primitive the layer below provides [E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md).

## How finders spotted it
- Downloaded the target into a sandbox and audited format detection, coder selection, delegate invocation, and policy enforcement in sequence [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Noticed `<?xml` content overriding a .jpg extension, then traced SVG xlink:href into ReadImage() coder prefixes [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Enumerated PostScript coders to find EPSI/EPI/EPSF missing from the blocklist, and tested byte-offset detection to find a newline-prefix bypass [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Enumerated modules absent from limited/secure policies after seeing the blocklist was name-based [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Observed Flash's handling of ignored characters in file:// URIs and hypothesized a decoder page could escape the local sandbox, then built a chunked length-then-content reader to test [E3](https://bugbountylibrary.com/r/h1%3A2140.md)
- Watched the gap between a source-level fix and the shipped release, treating a source N-day as a shipped zero-day [E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md)

## Variants seen
- Alternate coder reaching the same delegate as the blocked one [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- In-process delegate call bypassing the delegate policy check [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Content/magic-byte detection overriding extension-based routing [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)
- Ignored characters in file:// URIs defeating origin checks [E3](https://bugbountylibrary.com/r/h1%3A2140.md)
- Chained type confusion plus Wasm escape plus kernel LPE across layers [E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md)

## Impact and severity
E1 reached arbitrary file read, file write, and RCE under open, limited, and secure policies, extended to pre-auth WordPress and post-auth Author via XML-RPC, with /tmp writes enabling tmpfs OOM DoS and PHP session poisoning. E2 chained three bugs to move from renderer to SYSTEM-level execution and deploy espionage malware. E3 read arbitrary local and cross-origin files, expanded to authenticated data theft by chaining a predictable download location. Impact rises with each additional primitive chained and with how far the reach extends beyond the original sandbox [E1](https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md)[E2](https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md)[E3](https://bugbountylibrary.com/r/h1%3A2140.md).

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **ImageMagick** (EPT coder, PDF coder, EPSI coder, MSL coder, SVG/MSVG render) fixed in 6.9.13-34: ImageMagick: From Arbitrary File Read to RCE In Every Policy. Report: https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Apwn-ai-blog-imagemagick-from-arbitrary-file-read-to-rce-in-every-policy-zeroday.md
- E2: https://bugbountylibrary.com/r/blog%3Avolexity-com-blog-2026-09-09-mind-the-patch-gap-multiple-chinese-threat-actors-chain-0-day-exploits-in-chrome-windows.md
- E3: https://bugbountylibrary.com/r/h1%3A2140.md
