# CVE-2022-39334: nextcloudcmd incorrectly trusts bad TLS certificates

- Priority: **Routine**
- Reason: Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-25 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2022-39334, DEBIAN-CVE-2022-39334
- Record: https://cvemate.com/vulnerability/CVE-2022-39334 · JSON: https://cvemate.com/vulnerability/CVE-2022-39334/json

## Description

```text
Nextcloud also ships a CLI utility called nextcloudcmd which is sometimes used for automated scripting and headless servers. Versions of nextcloudcmd prior to 3.6.1 would incorrectly trust invalid TLS certificates, which may enable a Man-in-the-middle attack that exposes sensitive data or credentials to a network attacker. This affects the CLI only. It does not affect the standard GUI desktop Nextcloud clients, and it does not affect the Nextcloud server.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.21%, percentile 11.797%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian nextcloud-desktop (Debian): \< 3.6.1-1
- ubuntu nextcloud-desktop (Ubuntu): All versions (No fix recorded)
- nextcloud desktop: \< 3.6.1
- nextcloud security-advisories: \< 3.6.1

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-82xx-98xv-4jxv>
- <https://github.com/nextcloud/desktop/issues/4927>
- <https://github.com/nextcloud/desktop/pull/5022>
- <https://hackerone.com/reports/1699740>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00018.html>
- <https://ubuntu.com/security/CVE-2022-39334>
- <https://www.cve.org/CVERecord?id=CVE-2022-39334>
- <https://security-tracker.debian.org/tracker/CVE-2022-39334>

---

Data as of 2026-12-05T04:58:43.220Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
