CVE-2022-39334 json
nextcloudcmd incorrectly trusts bad TLS certificates
published 2022-11-25 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-41811
- cvss
- 3.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nextcloud desktop 3.6.1
- nextcloud-desktop Debian 14, Debian 13, Debian 12 3.6.1-1
debian advisories DEBIAN-CVE-2022-39334
- nextcloud-desktop Package Hub 15 SP5, openSUSE Leap 15.5 3.8.0-bp155.2.3.1
- nextcloud-desktop Package Hub 15 SP4, openSUSE Leap 15.4 3.8.0-bp154.2.3.1
opensuse advisories openSUSE-SU-2023:0171-1openSUSE-SU-2023:0090-1
- github.com/nextcloud/desktop#5022 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-39334 updated cvss 2.8
nextcloud-client: nextcloudcmd incorrectly trusts bad TLS certificates
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/nextcloud/desktop/issues/4927 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected products
- nextcloud security-advisories
Classification
- Weakness
-
- CWE-295 Improper Certificate Validation
References
-
github.com
/nextcloud/desktop/pull/5022
patch, third-party-advisory
-
github.com
/nextcloud/desktop/issues/4927
exploit, issue-tracking, third-party-advisory
-
github.com
/nextcloud/security-advisories/security/advisories/GHSA-82xx-98xv-4jxv
third-party-advisory
-
hackerone.com
/reports/1699740
permissions-required, third-party-advisory
- lists.debian.org /debian-lts-announce/2025/09/msg00018.html
Sources
- CVE List CVE-2022-39334
- NVD CVE-2022-39334
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.