Arbitrary Code Execution in de.tum.in.ase:artemis-java-test-sandbox

Summary

10/02/2023
HIGH
Yes i
High
8.2

GHSA-98hq-4wmw-98w9: Arbitrary code execution in de.tum.in.ase:artemis-java-test-sandbox. Affects de.tum.in.ase:artemis-java-test-sandbox versions < 1.11.2. Fixed in 1.11.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The de.tum.in.ase:artemis-java-test-sandbox package is a Maven ecosystem package used for testing Java code in a sandboxed environment. It provides functionality for loading and executing code within a controlled environment. However, a vulnerability has been discovered in the package that allows for arbitrary code execution.

Vulnerability Detail

The vulnerability arises from the missing checkLink(String) override in the SecurityManager of the de.tum.in.ase:artemis-java-test-sandbox package. This allows students or users to load libraries and execute arbitrary code using System.load(String) or System.loadLibrary(String). An example code snippet demonstrating the issue is as follows:

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));
}

The impact of this vulnerability is arbitrary code execution, which can lead to unauthorized access, data breaches, or system compromise.

How To Fix

Minimum fixed version

1.11.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. Applying the fix mentioned in the 'how_to_fix' section is the recommended approach.

Conclusion

The de.tum.in.ase:artemis-java-test-sandbox package is vulnerable to arbitrary code execution due to a missing checkLink(String) override in the SecurityManager. This vulnerability can have severe consequences, including unauthorized access, data breaches, or system compromise. To mitigate this vulnerability, it is recommended to apply the fix mentioned in the 'how_to_fix' section. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for de.tum.in.ase:artemis-java-test-sandbox →

Share this vulnerability

FAQ

The impact of this vulnerability is arbitrary code execution, which can lead to unauthorized access, data breaches, or system compromise.

To fix this vulnerability, the missing checkExec(String) method should be added to the SecurityManager. Refer to the 'how_to_fix' section for the code snippet.

There is no specific workaround mentioned for this vulnerability. Applying the fix mentioned in the 'how_to_fix' section is the recommended approach.

Versions 0 to 1.11.1 of de.tum.in.ase:artemis-java-test-sandbox are affected by this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for de.tum.in.ase:artemis-java-test-sandbox.

How To Fix

Minimum fixed version

1.11.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback