CVE-2022-23853 Command injection in n/a

High 7.8 Published Updated

Attackers can execute arbitrary code by placing a malicious LSP server binary in a directory opened by the user in KDE Kate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-23853?

CVE-2022-23853 is a high-severity command injection vulnerability in n/a, published on 11 Feb 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The LSP (Language Server Protocol) plugin in KDE Kate before 21.12.2 and KTextEditor before 5.91.0 tries to execute the associated LSP server binary when opening a file of a given type. If this binary is absent from the PATH, it will try running the LSP server binary in the directory of the file that was just opened (due to a misunderstanding of the QProcess API, that was never intended). This can be an untrusted directory.

Weakness: CWE-427

Which versions are affected by CVE-2022-23853?

It affects 2 products.

Linux distribution packages (2)
kate openSUSE:TumbleweedAll versions21.12.2-1.1
libqt5-qtbase openSUSE:TumbleweedAll versions5.15.2+kde294-2.1

Products include Kde Kate, Kde Ktexteditor.

How do I fix CVE-2022-23853?

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-2022-23853 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-23853, GHSA-qjh4-6jqf-7749, UBUNTU-CVE-2022-23853, openSUSE-SU-2024:11801-1, openSUSE-SU-2024:11813-1.

Is CVE-2022-23853 in your software?

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

Check your SBOMs for free