{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-3160 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2017-3160 yet. Limit exposure of the affected software until one is available.","what":"CVE-2017-3160 is a high-severity vulnerability in Apache Cordova Android, published on 1 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-3160 and fix it if it is affected.\n\nWhat it is: CVE-2017-3160 is a high-severity vulnerability in Apache Cordova Android, published on 1 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-3160 in the wild and no public exploit code.\n\nAffected product: Apache Cordova Android. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-3160/ (Markdown: https://insights.sbomify.com/CVE-2017-3160/index.md)","id":"CVE-2017-3160","markdown":"https://insights.sbomify.com/CVE-2017-3160/index.md","name":"CVE-2017-3160","record":{"aliases":["GHSA-vjv5-2xqq-c8vh"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Cordova Android","requires_auth":"none","summary":"Attackers can inject malicious code via Man-in-the-Middle attacks during Gradle download due to insecure HTTP usage in build scripts.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"cordova","vendor":"apache"}],"cvss":{"score":7.4,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.0"},"cwes":[],"description":"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","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Supply chain in Apache Cordova Android","id":"CVE-2017-3160","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"supply_chain","year":"2017"},"n_packages":0,"n_references":3,"next":{"headline":"Improper Neutralization of Input During Web Page Generation in Apache Hadoop","id":"CVE-2017-3161"},"packages":[],"prev":{"headline":"Apache Camel's camel-snakeyaml component is vulnerable to Java object de-serialization","id":"CVE-2017-3159"},"products":["Apache Cordova Android"],"published":"2018-02-01","related":[{"cvss_score":7.1,"headline":"System Information Library for Node.JS Command Injection","id":"CVE-2021-21315","kev_date_added":"2022-01-18","published":"2021-02-16"},{"cvss_score":9.8,"headline":"Cross-site scripting in n/a","id":"CVE-2014-0073","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":7.5,"headline":"Security feature bypass in n/a","id":"CVE-2014-0072","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":7.5,"headline":"Information Exposure in cordova-android","id":"CVE-2016-6799","kev_date_added":null,"published":"2017-05-09"},{"cvss_score":6.4,"headline":"Other in n/a","id":"CVE-2014-3500","kev_date_added":null,"published":"2014-11-15"},{"cvss_score":5.3,"headline":"Misconfiguration in n/a","id":"CVE-2015-1835","kev_date_added":null,"published":"2017-10-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Apache Software Foundation"]},"summary":"Attackers can inject malicious code via Man-in-the-Middle attacks during Gradle download due to insecure HTTP usage in build scripts.","url":"https://insights.sbomify.com/CVE-2017-3160/"}