Skip to content
Memory corruption Write-up Advanced

CVE-2022-35690: Unauthenticated RCE In Adobe ColdFusion

The ODBC Agent component of Adobe ColdFusion mishandles GIOP request messages, allowing heap and stack buffer overflows when oversized opcode data is supplied. A remote unauthenticated attacker could send a crafted request to execute arbitrary code as SYSTEM, or crash the process.

rgod Follow

Published on zerodayinitiative.com

A memory corruption vulnerability exists in Adobe ColdFusion. This vulnerability is due to the lack of proper validation of user-supplied data, which can result in a memory corruption condition.

rgod, 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 ODBC Agent uses the attacker-controlled OpcodeDataSize field as the length for memmove() calls into fixed-size heap and stack buffers without validating it against the buffer size.

Impact

Successful exploitation could result in arbitrary code execution with SYSTEM privileges, while an unsuccessful attack would crash the process, causing a denial of service.

What the attacker needed

Network access to port 20009/TCP; no authentication needed

The fix

Adobe patched the vulnerability in October 2022 and recommends also updating the ColdFusion JDK/JRE and applying the lockdown guidance.

How it was found

  1. Send a GIOP request message to port 20009/TCP with the magic bytes set to GIOP and message type 0.
  2. Set the ServiceContext and Principal fields to 0, the object key to the expected value and the operation to SSP.
  3. Include opcode 8 with an OpcodeDataSize larger than 38 to overrun the heap buffer, or opcode 7 with a size larger than 22 to overrun the stack buffer.

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.

ColdFusion is a web application platform, and one of its helper programs listens on a network port for a particular kind of message. That program copies data from the message into fixed-size memory areas without checking how much data there is, so extra data spills over into neighbouring memory. An attacker who can reach that port can use the spill to run their own code on the server.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by rgod

View all

696 more disclosed reports, best first.

More from Adobe

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.