Back to overview

CVE-2024-28185

CRITICAL
10.0
CVSS 3.1
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.

Metadata

CVE ID
CVE-2024-28185
State
PUBLISHED
Assigner
GitHub_M
Reserved
2024-03-06 17:35 UTC
Published
2024-04-18 14:31 UTC
Last updated
2024-08-02 00:48 UTC
Primary CWE
CWE-61
CWE-61: UNIX Symbolic Link (Symlink) Following
Vendor / Product
judge0 / judge0
Sources
cve.org  ·  NVD

Severity & Metrics

10.0 CRITICAL CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
SSVC — CISA Coordinator
Exploitation
none
Automatable
yes
Tech. Impact
total
Affected products (1)
VendorProductPlatformVersions
judge0 judge0 <= 1.13.0
Weakness (CWE)
CWESourceDescription
CWE-59 cna CWE-59: Improper Link Resolution Before File Access ('Link Following')
CWE-61 cna CWE-61: UNIX Symbolic Link (Symlink) Following
CVSS scores (1)
ScoreSeverityVersionSourceVector
10.0 CRITICAL 3.1 cna CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References (3)
Back to overview