{"id":"CVE-2024-28185","published":"2024-04-18T14:31:16Z","modified":"2024-08-02T00:48:49Z","title":"Judge0 vulnerable to Sandbox Escape via Symbolic Link","vendor":"judge0","product":"judge0","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07057,"percentile":0.94347,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/judge0/judge0/security/advisories/GHSA-h9g2-45c8-89cf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/judge0/judge0/commit/846d5839026161bb299b7a35fd3b2afb107992fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/judge0/judge0/blob/v1.13.0/app/jobs/isolate_job.rb#L197-L201","tags":["x_refsource_MISC"]}],"priority":{"score":30.9,"factors":[{"name":"EPSS percentile","points":18.87},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"metasploit":[{"name":"Judge0 sandbox escape","module":"exploit/linux/http/judge0_sandbox_escape_cve_2024_28189","type":"exploit","disclosureDate":"2024-03-04","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/judge0_sandbox_escape_cve_2024_28189.rb"}],"first":{"date":"2024-03-04","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/judge0_sandbox_escape_cve_2024_28189.rb"},"provenance":"source"},"vendorSlug":"judge0","affectedVersions":[{"vendor":"judge0","product":"judge0","versions":["<= 1.13.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-04-23T18:57:08.693509Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"Judge0, an open-source online code execution system, does not account for symbolic links placed inside its sandbox directory, where it writes a run_script file before executing a submission. An attacker who can submit code can create a symlink at the run_script path before that write occurs, causing the write to land on an arbitrary file on the unsandboxed host, and no authentication or user interaction is required beyond submitting code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:55Z"},"euvd":{"id":"EUVD-2024-25309","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-judge0-cve-2024-28185","children":[{"from":"CVE-2024-28185","to":"CVE-2024-28189","relation":"bypass","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"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.","from":"CVE.org","in":"CVE-2024-28189"},{"kind":"similar","provenance":"machine","score":0.43,"basis":"same product + CWE + description similarity"}]}]}}