CVE-2024-28185

Judge0 vulnerable to Sandbox Escape via Symbolic Link

Description

Judge0 is an open-source online code execution system. The application does not account for symlinks placed inside the sandbox directory, which can be leveraged by an attacker to write to arbitrary files and gain code execution outside of the sandbox. When executing a submission, Judge0 writes a `run_script` to the sandbox directory. The security issue is that an attacker can create a symbolic link (symlink) at the path `run_script` before this code is executed, resulting in the `f.write` writing to an arbitrary file on the unsandboxed system. An attacker can leverage this vulnerability to overwrite scripts on the system and gain code execution outside of the sandbox.

Category

10.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 67.16% Top 5%
Affected: judge0 judge0
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-28185?
CVE-2024-28185 has been scored as a critical severity vulnerability.
How to fix CVE-2024-28185?
To fix CVE-2024-28185, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-28185 being actively exploited in the wild?
It is possible that CVE-2024-28185 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~67% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-28185?
CVE-2024-28185 affects judge0 judge0.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.