CVE-2024-23681: Artemis java test sandbox Artemis-java-test-sandbox Vulnerability

HIGH
Advisory Identifier: GHSA-98hq-4wmw-98w9
CVSS 8.2
CWE-284
Published
Advisory Summary

CVE-2024-23681 is a HIGH (CVSS 8.2) artemis-java-test-sandbox vulnerability (CWE-284: Improper Access Control) affecting Artemis java test sandbox libraries in the Maven ecosystem. The issue involves artemis-java-test-sandbox. Remediation is available by upgrading affected packages to version 1.11.2.

CVE-2024-23681 at a Glance

CVE Identifier CVE-2024-23681
GHSA Identifier GHSA-98hq-4wmw-98w9
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-284: Improper Access Control
Affected Product Artemis java test sandbox
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-23681

To remediate this vulnerability, upgrade all affected Artemis java test sandbox dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

de.tum.in.ase:artemis-java-test-sandbox fixed: 1.11.2
<dependency>
    <groupId>de.tum.in.ase</groupId>
    <artifactId>artemis-java-test-sandbox</artifactId>
    <version>1.11.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=de.tum.in.ase

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-23681, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=de.tum.in.ase

Analyze the terminal output to locate any version of Artemis java test sandbox in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=de.tum.in.ase command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Artemis java test sandbox, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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. ```java 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: ```java @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.

CVE-2024-23681 Affected Artemis java test sandbox Versions

1 component(s)
Fixed Versions:
1.11.2
Product / Package Ecosystem Affected Versions Fixed Version
de.tum.in.ase:artemis-java-test-sandbox
Maven
< 1.11.2
1.11.2

References

Frequently Asked Questions

What is CVE-2024-23681?
CVE-2024-23681 is a security vulnerability in Artemis java test sandbox involving artemis-java-test-sandbox under CWE-284: Improper Access Control.
Which Artemis java test sandbox versions are affected?
Affected versions include releases prior to 1.11.2 across affected packages: de.tum.in.ase:artemis-java-test-sandbox.
What version fixes CVE-2024-23681?
Upgrading to 1.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is artemis-java-test-sandbox affected?
Yes, de.tum.in.ase:artemis-java-test-sandbox is affected in releases prior to 1.11.2. Upgrade your dependency to 1.11.2 or later.
What is the CVSS score of CVE-2024-23681?
CVE-2024-23681 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-23681?
CVE-2024-23681 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2024-23681?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=de.tum.in.ase'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-98hq-4wmw-98w9",
  "modified" : "2026-01-22T20:31:06Z",
  "published" : "2023-02-10T23:52:13Z",
  "aliases" : [ "CVE-2024-23681" ],
  "summary" : "Arbitrary code execution in de.tum.in.ase:artemis-java-test-sandbox",
  "details" : "### Summary\nBecause of the missing `checkLink(String)` override in the SecurityManager, students can load libraries and execute arbitrary code.\n\n### Details\nUsing `System.load(String)` or `System.loadLibrary​(String)` students can load and execute arbitrary code.\n\n```java\nprivate static native void start(List<String> args);\n\npublic static void main(String[] args) {\n  System.load(new File(\"path_to_lib.so\").getAbsolutePath());\n  start(List.of(args));\n}\n```\n\nAdding this to the security manager (and a translation) should fix the issue:\n```java\n@Override\npublic void checkExec(String cmd) {\n  try {\n    if (enterPublicInterface())\n      return;\n    throw new SecurityException(localized(\"security.error_link\")); //$NON-NLS-1$\n  } finally {\n    exitPublicInterface();\n  }\n}\n```\n\n### PoC\nSee details.\n\n### Impact\nArbitrary code execution.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "de.tum.in.ase:artemis-java-test-sandbox"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ls1intum/Ares/security/advisories/GHSA-98hq-4wmw-98w9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23681"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ls1intum/Ares"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-98hq-4wmw-98w9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-10T23:52:13Z",
    "nvd_published_at" : null
  }
}