CVE-2018-6791 Command injection in n/a

Medium 6.8 Published Updated

Attackers can execute arbitrary commands via malicious volume labels on USB drives in KDE Plasma Workspace.

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

What is CVE-2018-6791?

CVE-2018-6791 is a medium-severity command injection vulnerability in Debian Debian Linux, published on 7 Feb 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in soliduiserver/deviceserviceaction.cpp in KDE Plasma Workspace before 5.12.0. When a vfat thumbdrive that contains `` or $() in its volume label is plugged in and mounted through the device notifier, it's interpreted as a shell command, leading to a possibility of arbitrary command execution. An example of an offending volume label is "$(touch b)" -- this will create a file called b in the home folder.

Weakness: CWE-78

Which versions are affected by CVE-2018-6791?

It affects 2 products.

Products include Debian Debian Linux, Kde Plasma-Workspace.

How do I fix CVE-2018-6791?

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-2018-6791 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-6791, DSA-4116-1, GHSA-wfc7-x8jc-jx99, UBUNTU-CVE-2018-6791.

Is CVE-2018-6791 in your software?

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

Check your SBOMs for free