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

    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 ID SNYK-JAVA-COMGOOGLECLOUDTOOLS-2968871
  • published 7 Sep 2022
  • disclosed 3 Aug 2022
  • credit altman

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
Expand this section

Snyk

5.6 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical