CVE-2021-23331
CVE-2021-23331 is a medium-severity vulnerability in Squareup Connect Java Software Development Kit with a CVSS 3.x base score of 4.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: Medium (CVSS 3.x base score 4.4)
- CVSS v2: 2.1
- EPSS exploit prediction: 0% (26th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Squareup Connect Java Software Development Kit
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-23331?
- 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.
- How severe is CVE-2021-23331?
- CVE-2021-23331 has a CVSS 3.x base score of 4.4, rated medium severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2021-23331 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (26th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-23331?
- CVE-2021-23331 affects Squareup Connect Java Software Development Kit. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-23331?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-23331 published?
- CVE-2021-23331 was published on 2021-02-03 and last updated on 2026-06-17.
References
- https://github.com/square/connect-java-sdk/blob/master/src/main/java/com/squareup/connect/ApiClient.java%23L613
- https://snyk.io/vuln/SNYK-JAVA-COMSQUAREUP-1065988
Affected products (1)
- cpe:2.3:a:squareup:connect_java_software_development_kit:*:*:*:*:*:*:*:*