Sandbox Security Escapes in ColdFusion and Lucee (CVE-2025-30288 and CVE-2024-55354)
ColdFusion and Lucee would execute Java bytecode placed in .cfm or .cfc files, bypassing the CFML security sandbox because its checks assume code was compiled from CFML source. An attacker who could write files to a shared hosting environment could run arbitrary Java code and bypass sandbox restrictions, though JVM-level file I/O restrictions still applied.
In this post I'm going to cover the technical details of a security sandbox escape technique that affects Adobe ColdFusion and Lucee Server. These vulnerabilities are tracked as CVE-2025-30288 and CVE-2024-55354, and were announced in April 2025.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The engine treats any file starting with the Java class file header as precompiled bytecode and loads it without applying the sandbox checks that are only inserted during CFML compilation.
Impact
An attacker could bypass many sandbox controls, leading to disclosure of sensitive information, changing sensitive values, denial of service, and full compromise of a ColdFusion environment, though JVM-level file I/O restrictions still applied.
What the attacker needed
Ability to write .cfm files to the server; sandbox controls in use; shared or multi-tenant hosting
The fix
Adobe patched it so bytecode is blocked by default in most directories, with a JVM flag and path filter to control it; Lucee patched it but bytecode execution is not blocked by default and must be enabled with a system property or environment variable.
How it was found
- Compile Java source that extends the engine's page class and performs the desired action.
- Place the resulting class file in a writable web directory with a .cfm extension.
- Request the .cfm file so the server executes the bytecode.
- Alternatively, base64-encode the bytecode and write it to a .cfm file from within CFML.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A security sandbox is a set of rules that limits what code on a server is allowed to do, such as running system commands. These products normally check those rules when they compile CFML (their own programming language) into Java bytecode, but they also accept precompiled Java bytecode in the same file types and run it without those checks. So someone who can upload a file can run Java code that the sandbox was meant to block.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.