Skip to content
RCE Write-up Advanced

CVE-2019-7839: ColdFusion Code Execution Through JNBridge

The JNBridge binary protocol port in Adobe ColdFusion was exposed without authentication, allowing an unauthenticated attacker to send a crafted message that invokes arbitrary methods and achieves remote code execution as the root or SYSTEM user.

zerodayinitiative.com

Published on zerodayinitiative.com

A remote code execution vulnerability has been reported in Adobe ColdFusion. This vulnerability is due to the JNBridge binary protocol port being exposed without any authentication.

The author, on zerodayinitiative.com

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 JNBridge server, which by design allows instantiation of arbitrary classes and invocation of arbitrary methods, was exposed on a network port without any authentication or access control.

Impact

Successful exploitation results in remote code execution as the root or SYSTEM user; the patch disables remote access to .NET-to-Java connections unless the client IP is whitelisted, and the vendor recommends blocking all JNBridge Binary Protocol traffic to the affected ports.

What the attacker needed

Network access to TCP port 6093 or 6095; ColdFusion 2016 or 2018 with JNBridge enabled

The fix

Adobe fixed the issue in June 2019 by disabling remote access to .NET-to-Java connections within JNBridge, requiring client IP whitelisting in neo-dotnet.xml to re-enable it; the vendor also recommends blocking all JNBridge Binary Protocol messages to TCP port 6093 or 6095.

How it was found

  1. Connect to the JNBridge binary protocol port (6093 or 6095) on the target ColdFusion server.
  2. Send a crafted JNBridge binary protocol message that specifies a class, method, signature and arguments.
  3. The server deserialises the call and invokes the requested method by reflection, executing the attacker's chosen code.

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.

Adobe ColdFusion is a web application platform. It included a helper service called JNBridge that lets Java and .NET programs talk to each other. That service was reachable over the network without any login, and it was designed to run any method a caller asked for. So anyone who could reach the port could make the server run their own code.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.