8.2high
Artemis Java Test Sandbox Libary Load Escape
- Severity
- 8.2high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-98hq-4wmw-98w9
Description
Artemis Java Test Sandbox versions before 1.11.2 are vulnerable to a sandbox escape when an attacker loads untrusted libraries using System.load or System.loadLibrary. An attacker can abuse this issue to execute arbitrary Java when a victim executes the supposedly sandboxed code.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| de.tum.in.ase:artemis-java-test-sandbox | before 1.11.2 | CVE List |
| de.tum.in.ase:artemis-java-test-sandbox (Maven) | before 1.11.2 | GitHub Advisory Database |
| ls1intum artemis_java_test_sandbox | before 1.11.2 | NVD |
All scores
| CISA-ADP | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Artemis Java Test Sandbox versions before 1.11.2 are vulnerable to a sandbox escape when an attacker loads untrusted libraries using System.load or System.loadLibrary. An attacker can abuse this issue to execute arbitrary Java when a victim executes the supposedly sandboxed code.
GitHub Advisory Database
Summary
Because of the missing checkLink(String) override in the SecurityManager, students can load libraries and execute arbitrary code.
Details
Using System.load(String) or System.loadLibrary(String) students can load and execute arbitrary code.
private static native void start(List<String> args);
public static void main(String[] args) {
System.load(new File("path_to_lib.so").getAbsolutePath());
start(List.of(args));
}
Adding this to the security manager (and a translation) should fix the issue:
@Override
public void checkExec(String cmd) {
try {
if (enterPublicInterface())
return;
throw new SecurityException(localized("security.error_link")); //$NON-NLS-1$
} finally {
exitPublicInterface();
}
}
PoC
See details.
Impact
Arbitrary code execution.
NVD (es)
Las versiones de Artemis Java Test Sandbox anteriores a 1.11.2 son vulnerables a un escape de la sandbox cuando un atacante carga librerías que no son de confianza utilizando System.load o System.loadLibrary. Un atacante puede abusar de este problema para ejecutar Java arbitrario cuando una víctima ejecuta el código supuestamente aislado.
References
| https://github.com/ls1intum/Ares/security/advisories/GHSA-98hq-4wmw-98w9 | exploit, vendor-advisory, web | |
| https://github.com/advisories/GHSA-98hq-4wmw-98w9 | exploit, third-party-advisory, vendor-advisory | |
| https://vulncheck.com/advisories/vc-advisory-GHSA-98hq-4wmw-98w9 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-23681 | advisory | |
| https://github.com/ls1intum/Ares | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23681 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98hq-4wmw-98w9 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2024-23681 changed 2026-07-14 | Public domain |