CVE-2021-23331Squareup Connect Java Software Development Kit
Low 3.3
Follow: this CVE · Squareup · Squareup Connect Java Software Development Kit We alert you by email or Slack (account required).
- Priority
- 20
- CVSS 3.1
- 3.3
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 30
- Auth required
- Yes
- Published
- Feb 3, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Connect Java Software Development Kit.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.squareup:connect |
≤ 2.20191120.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-q4hm-fwc9-hmv6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| squareup | connect_java_software_development_kit | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- snyk.io Third Party Advisory