CVE-2021-23331
published medium CVSS 3.1 · 4.4Insecure Temporary File
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | com.squareup:connect0 to < unspecified | Affected | Not stated | snyk |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.4 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:W/RC:C
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | com.squareup:connect | 0 to < unspecified (affected · custom) | snyk · cna |
Weaknesses
1- Insecure Temporary File
References
2Provider assertions
2snyk · cna
Insecure Temporary File
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8ec4d0f12b7f6baefe9ff7da669529b73a1b5cdff7c23442fc41f8a5bc3846ae
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record