Remote Code Execution (RCE) Affecting com.google.cloud.tools:jib-core package, versions [,0.22.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.46% (91st 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 Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMGOOGLECLOUDTOOLS-2968871
  • published7 Sept 2022
  • disclosed3 Aug 2022
  • creditaltman

Introduced: 3 Aug 2022

CVE-2022-25914  (opens in a new tab)
CWE-94  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade com.google.cloud.tools:jib-core to version 0.22.0 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via the isDockerInstalled function, due to attempting to execute input.

PoC:

public static void poc(){
Path path = Paths.get("whoami");
DockerClient.isDockerInstalled(path);
}

CVSS Scores

version 3.1