{"id":"CVE-2024-23682","aliases":["CVE-2024-23682","GHSA-227w-wv4j-67h4"],"related":[],"kind":"vulnerability","state":"published","title":"Artemis Java Test Sandbox Class Loading Escape","summary":"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 Ares trusts. An attacker can abuse this issue to execute arbitrary Java when a victim executes the supposedly sandboxed code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 Ares trusts. An attacker can abuse this issue to execute arbitrary Java when a victim executes the supposedly sandboxed code.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de Artemis Java Test Sandbox anteriores a 1.8.0 son vulnerables a un escape de la sandbox cuando un atacante incluye archivos de clase en un paquete en el que Ares confía. Un atacante puede abusar de este problema para ejecutar Java arbitrario cuando una víctima ejecuta el código supuestamente aislado.","source":"nvd"}],"published":"2022-02-09T22:30:30.000Z","modified":"2026-11-08T13:59:59.024Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-501","CWE-653"],"affected":[{"ranges":[{"type":"maven","introduced":"0","fixed":"1.8.0","status":"affected"}],"package":"de.tum.in.ase:artemis-java-test-sandbox","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.0"}],"ecosystem":"Maven","package":"de.tum.in.ase:artemis-java-test-sandbox","purl":"pkg:maven/de.tum.in.ase/artemis-java-test-sandbox","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.8.0"}],"vendor":"ls1intum","product":"artemis_java_test_sandbox","cpe":"cpe:2.3:a:ls1intum:artemis_java_test_sandbox:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ls1intum/Ares/security/advisories/GHSA-227w-wv4j-67h4","tags":["exploit","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ls1intum/Ares/issues/15","tags":["issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ls1intum/Ares/releases/tag/1.8.0","tags":["related","release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-227w-wv4j-67h4","tags":["exploit","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-227w-wv4j-67h4","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23682","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ls1intum/Ares","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-01-22T15:37:36.607Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-23682","url":"https://www.cve.org/CVERecord?id=CVE-2024-23682","licence":"CVE Terms of Use","modified":"2026-11-08T13:59:59.024Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-227w-wv4j-67h4","url":"https://github.com/advisories/GHSA-227w-wv4j-67h4","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:07.550Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-23682","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23682","licence":"Public domain","modified":"2026-07-14T23:17:16.210Z"}],"updatedAt":"2026-11-25T22:58:36.245Z","epss":{"score":0.00378,"percentile":0.33846,"date":"2026-12-01T12:00:22.000Z"}}