Vulnerability · Published Feb 3, 2021 · Assigned by snyk

CVE-2021-23331Insecure Temporary File

Medium 4.4

In plain English

A medium-severity security flaw in com.squareup:connect. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities).

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.3%top 71.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

This 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavencom.squareup:connectno fix listedGHSA-q4hm-fwc9-hmv6

Affected products (as reported)

VendorProductVersions
n/a com.squareup:connect 0 – before unspecified

References