Skip to content
RCE Advisory Advanced CVE-2022-36038

GHSL-2022-069: Remote Code Execution (RCE) in CircuitVerse - CVE-2022-36038

CircuitVerse used the Oj library to deserialize JSON without a restricting mode, allowing arbitrary Ruby objects to be constructed. An authenticated attacker could exploit this to execute arbitrary code on the server.

p Follow

Originally disclosed on GitHub Security Lab

A remote code execution (RCE) vulnerability in CircuitVerse allowed authenticated attackers to execute arbitrary code via specially crafted JSON payloads.

p-, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Impact

This issue may lead to Remote Code Execution (RCE).

What the attacker needed

Authenticated user; ability to create an assignment; working on an assignment

The fix

The vulnerability was fixed by the maintainers.

How it was found

  1. Create an assignment (if permitted) and start it via the provided GET endpoint.
  2. Send a POST request to the simulator update endpoint with a crafted JSON payload in the data parameter.
  3. The payload triggers deserialization of a gadget chain, leading to code 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 report has not been written yet. The Original tab links to the source.

The application took data from users and turned it back into programming objects without checking what kind of objects they were. An attacker could craft data that, when turned into objects, ran commands on the server. This is called insecure deserialization.

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 p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.