com.squareup:connect on Unix System Property prepareDownloadFilecreates temp file

entryeditHistoryDiffjsonxmlCTI

A vulnerability, which was classified as critical, has been found in com.squareup:connect on Unix (unknown version). This issue affects the function prepareDownloadFilecreates of the component System Property Handler. There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

Field02/04/2021 10:42 AM02/23/2021 01:13 PM
namecom.squareup:connectcom.squareup:connect
platformUnixUnix
componentSystem Property HandlerSystem Property Handler
functionprepareDownloadFilecreatesprepareDownloadFilecreates
cwe377 (privilege escalation)377 (privilege escalation)
risk22
cvss3_vuldb_acLL
cvss3_vuldb_prLL
cvss3_vuldb_uiNN
cvss3_vuldb_sUU
cvss3_vuldb_cLL
cvss3_vuldb_iLL
cvss3_vuldb_aLL
identifierSNYK-JAVA-COMSQUAREUP-1065988SNYK-JAVA-COMSQUAREUP-1065988
urlhttps://snyk.io/vuln/SNYK-JAVA-COMSQUAREUP-1065988https://snyk.io/vuln/SNYK-JAVA-COMSQUAREUP-1065988
cveCVE-2021-23331CVE-2021-23331
date1612393200 (02/04/2021)1612393200 (02/04/2021)
cvss2_vuldb_acLL
cvss2_vuldb_ciPP
cvss2_vuldb_iiPP
cvss2_vuldb_aiPP
cvss2_vuldb_avAA
cvss2_vuldb_auSS
cvss2_vuldb_eNDND
cvss2_vuldb_rlNDND
cvss2_vuldb_rcNDND
cvss3_vuldb_avAA
cvss3_vuldb_eXX
cvss3_vuldb_rlXX
cvss3_vuldb_rcXX
cvss2_vuldb_basescore5.25.2
cvss2_vuldb_tempscore5.25.2
cvss3_vuldb_basescore5.55.5
cvss3_vuldb_tempscore5.55.5
cvss3_meta_basescore5.55.5
cvss3_meta_tempscore5.55.5
price_0day$0-$5k$0-$5k
cve_assigned1610060400
cve_nvd_summaryThis affects all versions of package com.squareup:connect. The method prepareDownloadFilecreates creates a temporary file with the permissions bits of -rw-r--r-- on unix-like systems. On unix-like systems, the system temporary directory is shared between users. As such, the contents of the file downloaded by downloadFileFromResponse will be visible to all other users on the local system. A workaround fix for this issue is to set the system property java.io.tmpdir to a safe directory as remediation. Note: This version of the SDK is end of life and no longer maintained, please upgrade to the latest version.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!