Skip to content
RCE Write-up Intermediate

Breaking Down CVE-2023–43208: Mirth Connect Unauthenticated RCE

Mirth Connect versions before 4.4.1 deserialise untrusted XML sent to the /api/users endpoint, allowing an unauthenticated attacker to trigger a Java gadget chain and run arbitrary commands on the server. The author demonstrates this with a Python proof-of-concept that opens a reverse shell against a lab target.

medium.com

Published on medium.com

Healthcare integration platforms often sit deep inside enterprise networks and process highly sensitive data. When vulnerabilities appear in these systems, the impact can be severe.

Mkirahmet, on medium.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 application deserialises untrusted XML without validation, so attacker-supplied data can instantiate classes that form a Java gadget chain and execute code.

Impact

An unauthenticated attacker could run arbitrary commands on a healthcare integration server, potentially moving laterally, exfiltrating medical data or disrupting clinical systems.

What the attacker needed

Network access to the Mirth Connect instance; target runs a version before 4.4.1; no authentication needed

The fix

The flaw was fixed in Mirth Connect 4.4.1, and operators should upgrade to that version or later and restrict access to administrative endpoints.

How it was found

  1. Start a listener to catch the incoming connection
  2. Run the exploit script against the target's web address, passing the listener host and port
  3. The target connects back to the listener if the exploit succeeds

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.

Mirth Connect is software hospitals use to pass patient data between systems. Deserialisation means turning stored data back into live program objects, and if that data comes from an outsider, the program can be tricked into running their code. Here anyone on the network could send a crafted XML file to one web address and get commands executed on the server, with no login needed.

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.