CVE-2022-41882: Nextcloud 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.forceshareaccept 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Nextcloud Desktop clientto a version that resolves this vulnerability.Fixed in 3.6.1 - Configuration
Enforce share acceptance by setting the system config `sharing.force_share_accept` to `true` on the server, so new files designed to use this attack vector are not downloaded anymore.
Nextcloud Server sharing.force_share_accept = true - Configuration
As a workaround, block the Nextcloud Desktop client 3.6.0 by setting the system config `minimum.supported.desktop.version` to `3.6.1` on the server, so new files designed to use this attack vector are not downloaded anymore.
Nextcloud Server minimum.supported.desktop.version = 3.6.1
Event History
Frequently Asked Questions
What is CVE-2022-41882?
CVE-2022-41882 is a vulnerability in the Nextcloud Desktop Client that allows an attacker to execute arbitrary code on a user's computer.
How severe is CVE-2022-41882?
CVE-2022-41882 has a severity rating of 7.8 out of 10, indicating a high severity.
Which version of the Nextcloud Desktop Client is affected by CVE-2022-41882?
Version 3.6.0 of the Nextcloud Desktop Client is affected by CVE-2022-41882.
How can I fix CVE-2022-41882?
To fix CVE-2022-41882, upgrade to version 3.6.1 of the Nextcloud Desktop Client.
Where can I find more information about CVE-2022-41882?
You can find more information about CVE-2022-41882 in the following references: [Reference 1](https://github.com/nextcloud/desktop/pull/5039), [Reference 2](https://github.com/nextcloud/desktop/releases/tag/v3.6.1), [Reference 3](https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3w86-rm38-8w63).