CVE-2020-7599: Plugin publish plugin Exposure Of Sensitive Information Vulnerability

MODERATE
Advisory Identifier: GHSA-cv78-v957-jx34
CVSS 6.5
CWE-532
Published
Advisory Summary

CVE-2020-7599 is a MODERATE (CVSS 6.5) exposure of sensitive information vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Plugin publish plugin libraries in the Maven ecosystem. The issue involves exposure of sensitive information in gradle publish plugin. Remediation is available by upgrading affected packages to version 0.11.0.

CVE-2020-7599 at a Glance

CVE Identifier CVE-2020-7599
GHSA Identifier GHSA-cv78-v957-jx34
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Plugin publish plugin
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-7599

To remediate this vulnerability, upgrade all affected Plugin publish plugin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.gradle.publish:plugin-publish-plugin fixed: 0.11.0
<dependency>
    <groupId>com.gradle.publish</groupId>
    <artifactId>plugin-publish-plugin</artifactId>
    <version>0.11.0</version>
</dependency>
com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin fixed: 0.11.0
<dependency>
    <groupId>com.gradle.plugin-publish</groupId>
    <artifactId>com.gradle.plugin-publish.gradle.plugin</artifactId>
    <version>0.11.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.gradle.publish

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-7599, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.gradle.publish

Analyze the terminal output to locate any version of Plugin publish plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.gradle.publish command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Plugin publish plugin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

All versions of com.gradle.plugin-publish before 0.11.0 are vulnerable to Insertion of Sensitive Information into Log File. When a plugin author publishes a Gradle plugin while running Gradle with the --info log level flag, the Gradle Logger logs an AWS pre-signed URL. If this build log is publicly visible (as it is in many popular public CI systems like TravisCI) this AWS pre-signed URL would allow a malicious actor to replace a recently uploaded plugin with their own.

CVE-2020-7599 Affected Plugin publish plugin Versions

2 component(s)
Fixed Versions:
0.11.0
Product / Package Ecosystem Affected Versions Fixed Version
com.gradle.publish:plugin-publish-plugin
Maven
< 0.11.0
0.11.0
com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin
Maven
< 0.11.0
0.11.0

References

Frequently Asked Questions

What is CVE-2020-7599?
CVE-2020-7599 is a security vulnerability in Plugin publish plugin involving Exposure of Sensitive Information in Gradle publish plugin under CWE-532: Insertion of Sensitive Information into Log File.
Which Plugin publish plugin versions are affected?
Affected versions include releases prior to 0.11.0 across affected packages: com.gradle.publish:plugin-publish-plugin, com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin.
What version fixes CVE-2020-7599?
Upgrading to 0.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is plugin-publish-plugin affected?
Yes, com.gradle.publish:plugin-publish-plugin is affected in releases prior to 0.11.0. Upgrade your dependency to 0.11.0 or later.
Is com.gradle.plugin-publish.gradle.plugin affected?
Yes, com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin is affected in releases prior to 0.11.0. Upgrade your dependency to 0.11.0 or later.
What is the CVSS score of CVE-2020-7599?
CVE-2020-7599 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-7599?
CVE-2020-7599 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for CVE-2020-7599?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.gradle.publish'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cv78-v957-jx34",
  "modified" : "2022-07-27T22:17:45Z",
  "published" : "2022-05-24T17:12:57Z",
  "aliases" : [ "CVE-2020-7599" ],
  "summary" : "Exposure of Sensitive Information in Gradle publish plugin",
  "details" : "All versions of com.gradle.plugin-publish before 0.11.0 are vulnerable to Insertion of Sensitive Information into Log File. When a plugin author publishes a Gradle plugin while running Gradle with the --info log level flag, the Gradle Logger logs an AWS pre-signed URL. If this build log is publicly visible (as it is in many popular public CI systems like TravisCI) this AWS pre-signed URL would allow a malicious actor to replace a recently uploaded plugin with their own.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.gradle.publish:plugin-publish-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7599"
  }, {
    "type" : "WEB",
    "url" : "https://blog.gradle.org/plugin-portal-update"
  }, {
    "type" : "WEB",
    "url" : "https://plugins.gradle.org/plugin/com.gradle.plugin-publish"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-COMGRADLEPLUGINPUBLISH-559866"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-27T22:17:45Z",
    "nvd_published_at" : "2020-03-30T19:15:00Z"
  }
}