Skip to content
OpenAdvisories
Medium · 6.6 CVE-2022-41882 EUVD-2022-45040

Nextcloud Desktop vulnerable to code injection via malicious link

Published Nov 11, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

The Nextcloud Desktop Client is a tool to synchronize files from Nextcloud Server with your computer. In version 3.6.0, if a user received a malicious file share and has it synced locally or the virtual filesystem enabled and clicked a nc://open/ link it will open the default editor for the file type of the shared file, which on Windows can also sometimes mean that a file depending on the type, e.g. "vbs", is being executed. It is recommended that the Nextcloud Desktop client is upgraded to version 3.6.1. As a workaround, users can block the Nextcloud Desktop client 3.6.0 by setting the `minimum.supported.desktop.version` system config to `3.6.1` on the server, so new files designed to use this attack vector are not downloaded anymore. Already existing files can still be used. Another workaround would be to enforce shares to be accepted by setting the `sharing.force_share_accept` system config to `true` on the server, so new files designed to use this attack vector are not downloaded anymore. Already existing shares can still be abused.

Affected products

VendorProductAffectedFixed
nextcloud security-advisories = 3.6.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nextcloud-desktop 3.6.1-1 —
Debian 13 nextcloud-desktop 3.6.1-1 —
Debian 12 nextcloud-desktop 3.6.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nextcloud-desktop No fix yet —
Ubuntu 20.04 LTS nextcloud-desktop No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 nextcloud-client 3.6.2-r0 —
Alpine v3.23 nextcloud-client 3.6.2-r0 —
Alpine v3.22 nextcloud-client 3.6.2-r0 —
Alpine v3.21 nextcloud-client 3.6.2-r0 —
Alpine v3.20 nextcloud-client 3.6.2-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nextcloud-client 3.6.2-r0 —
Alpine v3.18 nextcloud-client 3.6.2-r0 —
Alpine v3.17 nextcloud-client 3.6.2-r0 —

References