CVE-2024-28189 Judge0 vulnerable to Sandbox Escape Patch Bypass via chown running on Symbolic Link

Critical 10.0 Published Updated

Attackers can escape the sandbox by exploiting symlink handling in chown operations, leading to arbitrary file modification and potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-28189?

CVE-2024-28189 is a critical path traversal vulnerability in judge0, published on 18 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Judge0 is an open-source online code execution system. The application uses the UNIX chown command on an untrusted file within the sandbox. An attacker can abuse this by creating a symbolic link (symlink) to a file outside the sandbox, allowing the attacker to run chown on arbitrary files outside of the sandbox. This vulnerability is not impactful on it's own, but it can be used to bypass the patch for CVE-2024-28185 and obtain a complete sandbox escape. This vulnerability is fixed in 1.13.1.

Weakness: CWE-61, CWE-59

Which versions are affected by CVE-2024-28189?

How do I fix CVE-2024-28189?

No fix has been published for CVE-2024-28189 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-28189 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28189 exists.

Public exploit code: 1 Metasploit module.

Sources

Is CVE-2024-28189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free