CVE-2021-22879 Command injection in Nextcloud Desktop Client

High 8.8 Published Updated

A malicious server can execute remote commands on the Nextcloud Desktop Client via URL injection, requiring user interaction.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-22879?

CVE-2021-22879 is a high-severity command injection vulnerability in Fedoraproject Fedora, published on 14 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Nextcloud Desktop Client prior to 3.1.3 is vulnerable to resource injection by way of missing validation of URLs, allowing a malicious server to execute remote commands. User interaction is needed for exploitation.

Weakness: CWE-74, CWE-99

Which versions are affected by CVE-2021-22879?

It affects 2 products.

Linux distribution packages (1)
nextcloud-desktop openSUSE:Leap 15.2All versions3.1.3-lp152.2.6.1

Products include Fedoraproject Fedora, Nextcloud Desktop.

How do I fix CVE-2021-22879?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-22879 being exploited?

There is no known exploitation of CVE-2021-22879 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-22879, GHSA-vrvw-x9cv-3j76, UBUNTU-CVE-2021-22879, openSUSE-SU-2021:0577-1, openSUSE-SU-2024:11088-1.

Is CVE-2021-22879 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free