CVE-2020-14342 Command injection in cifs-utils

Medium 4.4 Published Updated

An attacker with sudo access to mount.cifs can inject arbitrary commands via the Samba password prompt, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-14342?

CVE-2020-14342 is a medium-severity command injection vulnerability in Fedoraproject Fedora, published on 9 Sep 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

It was found that cifs-utils' mount.cifs was invoking a shell when requesting the Samba password, which could be used to inject arbitrary commands. An attacker able to invoke mount.cifs with special permission, such as via sudo rules, could use this flaw to escalate their privileges.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2020-14342?

It affects 3 products.

Linux distribution packages (6)
cifs-utils SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions6.9-5.6.1
cifs-utils SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions6.9-5.6.1
cifs-utils SUSE:Linux Enterprise Server 12 SP5All versions6.9-13.11.1
cifs-utils SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions6.9-13.11.1
cifs-utils SUSE:Linux Enterprise Software Development Kit 12 SP5All versions6.9-13.11.1
cifs-utils openSUSE:Leap 15.1All versions6.9-lp151.4.7.1

Products include Fedoraproject Fedora, Opensuse Leap, Samba Cifs-Utils.

How do I fix CVE-2020-14342?

Apply the vendor's patch.

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

Is CVE-2020-14342 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2020-14342, AZL-6353, DEBIAN-CVE-2020-14342, GHSA-7mmj-72wg-6gpv, MGASA-2020-0376, SUSE-SU-2020:2728-1 and 3 more.

Is CVE-2020-14342 in your software?

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

Check your SBOMs for free