CVE-2024-23682: Artemis java test sandbox Class Loading Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-227w-wv4j-67h4
CVSS 8.2
CWE-501 CWE-653
Published
Advisory Summary

CVE-2024-23682 is a HIGH (CVSS 8.2) class loading vulnerability vulnerability (CWE-501: Trust Boundary Violation) affecting Artemis java test sandbox libraries in the Maven ecosystem. The issue involves class loading vulnerability in artemis. Remediation is available by upgrading affected packages to version 1.8.0.

CVE-2024-23682 at a Glance

CVE Identifier CVE-2024-23682
GHSA Identifier GHSA-227w-wv4j-67h4
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-501: Trust Boundary Violation
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-23682

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.8.0
<dependency>
    <groupId>de.tum.in.ase</groupId>
    <artifactId>artemis-java-test-sandbox</artifactId>
    <version>1.8.0</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-23682, 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.8.0), 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-501: Trust Boundary Violation, where the product mixes trusted and untrusted data in the same data structure or structured message. 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

### Impact This affects all Artemis users who test Java assignments. **Ares is not required.** Students code that gets automatically tested can run arbitrary code in the container, or arbitrary code on the machine of an assessor in case of manual correction. ### Patches The problem cannot be resolved easily in Ares itself. Use the Maven Enforcer Plugin as follows: ```xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>enforce-no-student-code-in-trusted-packages</id> <phase>process-classes</phase> <goals> <goal>enforce</goal> </goals> </execution> </executions> <configuration> <rules> <requireFilesDontExist> <files> <!-- ADD HERE THE RULES ARES TELLS YOU ARE MISSING --> </files> </requireFilesDontExist> </rules> </configuration> </plugin> ``` This fails the build if student classes reside in such packages that Ares trusts. Trusted packages added in Ares using `@AddTrustedPackage` should be added as well. ### For more information If you have any questions or comments about this advisory: * Open a discussion https://github.com/ls1intum/Ares/discussions * Open an issue in https://github.com/ls1intum/Ares/issues * Email us, see https://github.com/ls1intum/Ares/security/policy ### References See the assignment of Julius that passes the tests in TUM Artemis course: "Test - Praktikum: Grundlagen der Programmierung (Testkurs für Tutoren) - Security Tests" (if that still exists in 2022). Also see #15 for almost the same problem.

CVE-2024-23682 Affected Artemis java test sandbox Versions

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

References

Frequently Asked Questions

What is CVE-2024-23682?
CVE-2024-23682 is a security vulnerability in Artemis java test sandbox involving Class Loading Vulnerability in Artemis under CWE-501: Trust Boundary Violation.
Which Artemis java test sandbox versions are affected?
Affected versions include releases prior to 1.8.0 across affected packages: de.tum.in.ase:artemis-java-test-sandbox.
What version fixes CVE-2024-23682?
Upgrading to 1.8.0 (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.8.0. Upgrade your dependency to 1.8.0 or later.
What is the CVSS score of CVE-2024-23682?
CVE-2024-23682 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-23682?
CVE-2024-23682 is classified under CWE-501: Trust Boundary Violation (The product mixes trusted and untrusted data in the same data structure or structured message.).
How can I check Maven dependencies for CVE-2024-23682?
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-227w-wv4j-67h4",
  "modified" : "2026-01-22T20:53:41Z",
  "published" : "2022-02-09T22:30:30Z",
  "aliases" : [ "CVE-2024-23682" ],
  "summary" : "Class Loading Vulnerability in Artemis",
  "details" : "### Impact\nThis affects all Artemis users who test Java assignments. **Ares is not required.**\nStudents code that gets automatically tested can run arbitrary code in the container,\nor arbitrary code on the machine of an assessor in case of manual correction.\n\n### Patches\nThe problem cannot be resolved easily in Ares itself. Use the Maven Enforcer Plugin as follows:\n\n```xml\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-enforcer-plugin</artifactId>\n    <version>3.0.0</version>\n    <executions>\n        <execution>\n            <id>enforce-no-student-code-in-trusted-packages</id>\n            <phase>process-classes</phase>\n            <goals>\n                <goal>enforce</goal>\n            </goals>\n        </execution>\n    </executions>\n    <configuration>\n        <rules>\n            <requireFilesDontExist>\n                <files>\n                    <!-- ADD HERE THE RULES ARES TELLS YOU ARE MISSING -->\n                </files>\n            </requireFilesDontExist>\n        </rules>\n    </configuration>\n</plugin>\n```\n\nThis fails the build if student classes reside in such packages that Ares trusts. Trusted packages added in Ares using `@AddTrustedPackage` should be added as well.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a discussion https://github.com/ls1intum/Ares/discussions\n* Open an issue in https://github.com/ls1intum/Ares/issues\n* Email us, see https://github.com/ls1intum/Ares/security/policy\n\n### References\nSee the assignment of Julius that passes the tests in TUM Artemis course: \"Test - Praktikum: Grundlagen der Programmierung (Testkurs für Tutoren) - Security Tests\" (if that still exists in 2022).\n\nAlso see #15 for almost the same problem.",
  "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.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ls1intum/Ares/security/advisories/GHSA-227w-wv4j-67h4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23682"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ls1intum/Ares/issues/15"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ls1intum/Ares"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ls1intum/Ares/releases/tag/1.8.0"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-227w-wv4j-67h4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-501", "CWE-653" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-09T22:30:30Z",
    "nvd_published_at" : null
  }
}