CVE-2024-28185

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-28185
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28185.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-28185
Aliases
  • GHSA-h9g2-45c8-89cf
Published
2024-04-18T14:31:16Z
Modified
2025-10-30T20:25:20.116439Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Judge0 vulnerable to Sandbox Escape via Symbolic Link
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-59",
        "CWE-61"
    ]
}
References

Affected packages

Git / github.com/judge0/judge0

Affected ranges

Type
GIT
Repo
https://github.com/judge0/judge0
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.2

v1.*

v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.1.5
v1.10.0
v1.11.0
v1.12.0
v1.13.0
v1.2.0
v1.2.1
v1.2.2
v1.3.0
v1.3.1
v1.4.0
v1.5.0
v1.6.0
v1.7.0
v1.7.1
v1.8.0
v1.9.0