Skip to content
RCE Write-up Intermediate

Cherry Studio Command Injection Vulnerability (CVE-2025–54074)�

Cherry Studio's MCP client failed to validate the OAuth authorization_endpoint URL returned by an MCP server, passing it unsanitised into the open() function. A malicious MCP server could supply a crafted authentication URL containing injected commands, and when a user connected, arbitrary OS commands could run on the victim's machine.

AerieWhole123 Follow

Published on medium.com

Cherry Studio is a cross-platform AI desktop assistant that supports multiple mainstream LLMs and runs on Windows, macOS, and Linux.

AerieWhole123, 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 MCP client passed the server-supplied authorization_endpoint URL directly into the open() function without sanitisation or validation.

Impact

An attacker could run arbitrary OS commands on the victim's machine, potentially gaining full control, stealing sensitive data and compromising business systems; user interaction is required.

What the attacker needed

Cherry Studio ≤ v1.5.1; Victim connects to a malicious MCP server

The fix

The issue was fixed in v1.5.2; users should upgrade immediately and remove untrusted MCP servers as a temporary workaround.

How it was found

  1. Craft a malicious MCP server whose OAuth metadata contains an authorization_endpoint URL with injected commands.
  2. Trick a user into connecting Cherry Studio to that rogue MCP server.
  3. The client reads the unvalidated URL and passes it to open(), triggering command execution.

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.

Cherry Studio is a desktop AI assistant that can connect to external 'MCP servers' to add tools. When connecting, it reads a web address for login from that server and opens it without checking it is safe. A bad server could put extra operating-system commands in that address, so opening it runs those commands on your computer.

What is RCE?

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

More by AerieWhole123

View all

16 more disclosed reports, best first.

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.