GitHub Advisoryadvisory · Maven

GHSA-227w-wv4j-67h4 Class Loading Vulnerability in Artemis

HIGH Published 2022-02-09 Modified 2026-01-22 Official page ↗
Aliases
CVE-2024-23682
Ecosystem
Maven
Packages
de.tum.in.ase:artemis-java-test-sandbox
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Weaknesses
CWE-501, CWE-653
Reviewed
2022-02-09

Affected packages

• Maven de.tum.in.ase:artemis-java-test-sandbox: < 1.8.0 → fixed in 1.8.0

Description

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 org.apache.maven.plugins maven-enforcer-plugin 3.0.0 enforce-no-student-code-in-trusted-packages process-classes enforce ``` 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.

Related

Alias · CVE (1)

  • CVE-2024-23682 Artemis Java Test Sandbox versions before 1.8.0 are vulnerable to a sandbox escape when an attacker includes class files in a package that… vulnerability

Weakness · CWE (2)

  • CWE-501 Trust Boundary Violation weakness
  • CWE-653 Improper Isolation or Compartmentalization weakness

References