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).
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.squareup:connect | no fix listed | GHSA-q4hm-fwc9-hmv6 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | com.squareup:connect | 0 – before unspecified |