5.7medium
End-to-end encryption device setup did not verify public key
- Severity
- 5.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-NEXTCLOUD-2021-32727GHSA-5v33-r9cm-7736
Description
Nextcloud Android Client is the Android client for Nextcloud. Clients using the Nextcloud end-to-end encryption feature download the public and private key via an API endpoint. In versions prior to 3.16.1, the Nextcloud Android client skipped a step that involved the client checking if a private key belonged to a previously downloaded public certificate. If the Nextcloud instance served a malicious public key, the data would be encrypted for this key and thus could be accessible to a malicious actor. The vulnerability is patched in version 3.16.1. As a workaround, do not add additional end-to-end encrypted devices to a user account.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nextcloud security-advisories | < 3.16.1 | CVE List |
| nextcloud nextcloud | before 3.16.1 | NVD |
| nextcloud (Bitnami) | before 3.16.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Nextcloud Android Client is the Android client for Nextcloud. Clients using the Nextcloud end-to-end encryption feature download the public and private key via an API endpoint. In versions prior to 3.16.1, the Nextcloud Android client skipped a step that involved the client checking if a private key belonged to a previously downloaded public certificate. If the Nextcloud instance served a malicious public key, the data would be encrypted for this key and thus could be accessible to a malicious actor. The vulnerability is patched in version 3.16.1. As a workaround, do not add additional end-to-end encrypted devices to a user account.
NVD (es)
Nextcloud Android Client es el cliente Android para Nextcloud. Unos clientes que usan la funcionalidad end-to-end encryption de Nextcloud descargan la clave pública y privada por medio de un endpoint de la API. En versiones anteriores a 3.16.1, el cliente Android de Nextcloud se saltaba un paso que implicaba que el cliente comprobara si una clave privada pertenecía a un certificado público previamente descargado. Si la instancia de Nextcloud servía una clave pública maliciosa, los datos estarían cifrados para esta clave y, por tanto, podrían ser accesibles para un actor malicioso. La vulnerabilidad está parcheada en la versión 3.16.1. Como solución alternativa, no añada dispositivos cifrados de extremo a extremo adicionales a una cuenta de usuario
References
| https://github.com/nextcloud/security-advisories/security/advisories/GHSA-5v33-r9cm-7736 | advisory, third-party-advisory | |
| https://github.com/nextcloud/android/pull/8438 | advisory, third-party-advisory | |
| https://hackerone.com/reports/1189162 | permissions-required, web | |
| https://github.com/nextcloud/end_to_end_encryption_rfc/blob/7f002996397faefb664019a97ebb0a1e210f64f0/RFC.md#further-devices | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-32727 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32727 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-32727 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NEXTCLOUD-2021-32727 changed 2026-09-08 | Apache-2.0 |