CVE-2022-41882Nextcloud Desktop vulnerable to code injection via malicious link
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | nextcloud-desktop | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nextcloud-desktop | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nextcloud-desktop | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | nextcloud-desktop | Under investigation | UBUNTU-CVE-2022-41882 | |
| Ubuntu 20.04 | nextcloud-desktop | Fix pending | UBUNTU-CVE-2022-41882 | |
| Debian 14 | nextcloud-desktop | Fixed | 3.6.1-1 | DEBIAN-CVE-2022-41882 |
| Debian 13 | nextcloud-desktop | Fixed | 3.6.1-1 | DEBIAN-CVE-2022-41882 |
| Debian 12 | nextcloud-desktop | Fixed | 3.6.1-1 | DEBIAN-CVE-2022-41882 |
| Alpine Linux 3.24 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.23 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.22 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.21 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.20 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.19 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.18 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
| Alpine Linux 3.17 | nextcloud-client | Fixed | 3.6.2-r0 | ALPINE-CVE-2022-41882 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nextcloud security-advisories: affected: = 3.6.0
References
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3w86-rm38-8w63
- https://github.com/nextcloud/desktop/pull/5039
- https://github.com/nextcloud/server/pull/34559
- https://github.com/nextcloud/desktop/releases/tag/v3.6.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.