Command Injection Affecting openjdk-jre package, versions [16.0.0,16.0.1)[11.0.0,11.0.11)[1.8.0,1.8.0_291)[1.7.0,1.7.0_301)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UPSTREAM-OPENJDKJRE-1252750
  • published21 Apr 2021
  • disclosed20 Apr 2021
  • creditMarkus Loewe

Introduced: 20 Apr 2021

CVE-2021-2161  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade openjdk-jre to version 16.0.1, 11.0.11, 8.0.291, 7.0.301 or higher.

Overview

openjdk-jre is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).

Affected versions of this package are vulnerable to Command Injection. It was discovered that the implementation of ProcessBuilder in the Libraries component of OpenJDK on the Windows platform did not properly detect command arguments that were not quoted correctly. This could lead to manipulation of command arguments when executing processes with arguments from untrusted sources.

CVSS Base Scores

version 3.1