CVE-2021-23331
LOW 3.3CVSS 3.1Insecure temporary file used in com.squareup:connect
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.
- Published
- 3 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-377
- Also known as
- GHSA-q4hm-fwc9-hmv6
- Sources
- NVDJSONOSV GHSA-q4hm-fwc9-hmv6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | squareup | connect_java_software_development_kitcpe:2.3:a:squareup:connect_java_software_development_kit:*:*:*:*:*:*:*:* |
all versions | |
| OSV | Maven | com.squareup:connect | <= 2.20191120.0 |
References
- https://github.com/square/connect-java-sdk/blob/master/src/main/java/com/squareup/connect/ApiClient.java%23L613 · Broken Link, WEB
- https://snyk.io/vuln/SNYK-JAVA-COMSQUAREUP-1065988 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23331 · ADVISORY
- https://github.com/square/connect-java-sdk · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Feb 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Jun 2021)