Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-3160

After the Android platform is added to Cordova the first time, or after a project is created using the build scripts, the scripts will fetch Gradle on the first build. However, since the default URI is not using https, it is vulnerable to a MiTM and the Gradle executable is not safe. The severity of this issue is high due to the fact that the build scripts immediately start a build after Gradle has been fetched. Developers who are concerned about this issue should install version 6.1.2 or higher of Cordova-Android. If developers are unable to install the latest version, this vulnerability can easily be mitigated by setting the CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL environment variable to https://services.gradle.org/distributions/gradle-2.14.1-all.zip

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-3160
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:01 UTC · Revision 1

Source evidence

CVE-2017-3160

core-osv · Original source

Published 1 Feb 2018, 21:29 UTC

After the Android platform is added to Cordova the first time, or after a project is created using the build scripts, the scripts will fetch Gradle on the first build. However, since the default URI is not using https, it is vulnerable to a MiTM and the Gradle executable is not safe. The severity of this issue is high due to the fact that the build scripts immediately start a build after Gradle has been fetched. Developers who are concerned about this issue should install version 6.1.2 or higher of Cordova-Android. If developers are unable to install the latest version, this vulnerability can easily be mitigated by setting the CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL environment variable to https://services.gradle.org/distributions/gradle-2.14.1-all.zip

osv:CVE-2017-3160
Complete source record
{
  "id": "017bd6cf21f229fd21a861058d0216cb3f69328e8b016131805e1a79a6832cba",
  "url": "https://osv.dev/vulnerability/CVE-2017-3160",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-3160",
    "summary": "After the Android platform is added to Cordova the first time, or after a project is created using the build scripts, the scripts will fetch Gradle on the first build. However, since the default URI is not using https, it is vulnerable to a MiTM and the Gradle executable is not safe. The severity of this issue is high due to the fact that the build scripts immediately start a build after Gradle has been fetched. Developers who are concerned about this issue should install version 6.1.2 or higher of Cordova-Android. If developers are unable to install the latest version, this vulnerability can easily be mitigated by setting the CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL environment variable to https://services.gradle.org/distributions/gradle-2.14.1-all.zip",
    "evidence": "osv:CVE-2017-3160",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-3160",
      "aliases": [
        "CVE-2017-3160"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/cordova-android",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "37ee3cdf81e810697e6780a4325a2cec4cce5968"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:cordova:*:*:*:*:*:android:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "rel/6.1.1",
            "6.1.1",
            "rel/6.1.0",
            "6.1.0",
            "rel/StablePoC",
            "StablePoC",
            "CheckIn_node_modules",
            "2.4.0",
            "2.4.0rc1",
            "2.2.0",
            "2.2.0rc1",
            "2.1.0",
            "2.1.0rc2",
            "2.1.0rc1",
            "2.0.0",
            "2.0.0rc1",
            "1.9.0",
            "1.8.1pre",
            "1.8.0rc1",
            "1.7.0",
            "1.6.1",
            "1.6.0",
            "1.6.0rc1",
            "1.5.0",
            "1.5.0rc1",
            "1.4.1",
            "1.4.0",
            "1.4.0rc1",
            "1.2.0",
            "1.1.0",
            "0.9.5.1",
            "0.9.5",
            "0.9.4",
            "0.9.3",
            "0.9.2",
            "0.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-3160.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-3160-2b43499d",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "96936190387046404270703134661675771040",
                    "29879294918869099861397410465350151520",
                    "88333167400376117557867499877764349717",
                    "309572605990178499544204547139829020114"
                  ]
                },
                "source": "https://github.com/apache/cordova-android/commit/37ee3cdf81e810697e6780a4325a2cec4cce5968",
                "target": {
                  "file": "framework/src/org/apache/cordova/CordovaWebView.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:03:31Z"
          }
        }
      ],
      "modified": "2026-10-24T14:03:31.214929888Z",
      "provider": "osv",
      "references": [
        "https://www.oracle.com/security-alerts/cpuapr2020.html",
        "https://cordova.apache.org/announcements/2017/01/27/android-612.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:apache:cordova:*:*:*:*:*:android:*:*"
            ],
            "vendor_product": "apache:cordova",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "6.1.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-3160",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 442816,
  "published_at": "2018-02-01T21:29:00.197+00:00"
}