Insecure Temporary File
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | com.squareup:connect | all versions | — | No fix listed | CNA |
| — | com.squareup:connect (Maven) | up to 2.20191120.0 | — | No fix listed | GHSA-q4hm-fwc9-hmv6 |
- com.squareup:connect Vendor— Affected all versions Fixed in — No fix listed CNA
- com.squareup:connect (Maven) Vendor— Affected up to 2.20191120.0 Fixed in — No fix listed GHSA-q4hm-fwc9-hmv6
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23331
- 2026-10-03 Alias added: GHSA-q4hm-fwc9-hmv6
References
Sources
- CVE-2021-23331 · CVE Program
- CVE-2021-23331 · NVD
- FIRST EPSS
- GHSA-q4hm-fwc9-hmv6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences