LiveActive security incident?Get immediate response
CVE Record

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

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.

LowCVSS 3.9Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

The Nextcloud command-line sync tool could accept bad TLS certificates before version 3.6.1. If an organization used nextcloudcmd in scripts or on headless systems, a network attacker positioned between client and server could potentially intercept sensitive data or credentials. The regular GUI desktop clients and Nextcloud server are not affected.

Executive priority

Treat this as targeted hygiene, not an emergency. Patch affected CLI installations, especially automation handling credentials or sensitive files, but do not assume broad Nextcloud server compromise from this CVE alone.

Technical view

CVE-2022-39334 is a CWE-295 certificate validation flaw in nextcloudcmd versions before 3.6.1. The CLI incorrectly trusted invalid TLS certificates, weakening transport authenticity and enabling man-in-the-middle exposure under the right network conditions. CVSS is 3.9, with low confidentiality and integrity impact and no availability impact.

Likely exposure

Exposure is limited to environments running nextcloudcmd before 3.6.1, especially automation, scripts, and headless servers. Standard Nextcloud GUI desktop clients and Nextcloud server deployments are outside the stated affected scope.

Exploitation context

The source bundle does not show KEV listing or confirmed active exploitation. Practical abuse would require a suitable man-in-the-middle position and a victim workflow using the vulnerable CLI against an invalid certificate path.

Researcher notes

Evidence supports a narrow CLI-only TLS validation issue. Do not generalize impact to the GUI desktop client or server. The provided CVSS vector is low severity, but operational risk rises where nextcloudcmd runs unattended with sensitive credentials.

Mitigation direction

  • Upgrade nextcloudcmd to version 3.6.1 or later.
  • Apply vendor or distribution security updates where nextcloudcmd is packaged.
  • Prioritize automated or headless systems that run nextcloudcmd unattended.
  • Check Nextcloud and distribution advisories for environment-specific guidance.

Validation and detection

  • Inventory systems and scripts that call nextcloudcmd.
  • Verify installed nextcloudcmd versions are 3.6.1 or later.
  • Confirm exposure review excludes GUI desktop clients and servers unless they also run nextcloudcmd.
  • Review automation paths that connect across untrusted or shared networks.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-295: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-39334 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
3.9 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
3.9CVSS 3.1LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N1.32.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

3.9Low
CVSS 3.1 vector shape for CVE-2022-39334Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
nextcloudsecurity-advisories< 3.6.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-295 · source CWE mapping

Improper Certificate Validation

Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.