CVE-2024-23681
JSON

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 packageVersionsReported by
de.tum.in.ase:artemis-java-test-sandboxbefore 1.11.2CVE List
de.tum.in.ase:artemis-java-test-sandbox (Maven)before 1.11.2GitHub Advisory Database
ls1intum artemis_java_test_sandboxbefore 1.11.2NVD

All scores

CISA-ADP8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
GitHub8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-284

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

Sources

SourceRecordLicence
CVE ListCVE-2024-23681 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-98hq-4wmw-98w9 changed 2026-07-08CC-BY-4.0
NVDCVE-2024-23681 changed 2026-07-14Public domain