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

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-25T00:00:00.000Z
- Modified: 2026-06-17T04:58:09.877Z
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 3.6.1
- nextcloud desktop: before 3.6.1

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/nextcloud/desktop/issues/4927> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-82xx-98xv-4jxv> (third-party-advisory)
- <https://github.com/nextcloud/desktop/pull/5022> (patch, third-party-advisory)
- <https://hackerone.com/reports/1699740> (permissions-required, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00018.html>

## Sources

- CVE List: [CVE-2022-39334](https://www.cve.org/CVERecord?id=CVE-2022-39334), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2022-39334](https://nvd.nist.gov/vuln/detail/CVE-2022-39334), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39334 · Whole record: https://cve.day/CVE-2022-39334.json · Rebuilt by cve.day 2026-11-25T22:58:17.072Z
