CVE-2022-4170 Code injection in rxvt-unicode

Critical 9.8 Published Updated

Attackers can execute arbitrary code via the Perl background extension if they control terminal data and specific options are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-4170?

CVE-2022-4170 is a critical code injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 9 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The rxvt-unicode package is vulnerable to a remote code execution, in the Perl background extension, when an attacker can control the data written to the user's terminal and certain options are set.

Weakness: CWE-74

Which versions are affected by CVE-2022-4170?

It affects 3 products.

Linux distribution packages (5)
rxvt-unicode SUSE:Package Hub 15 SP4All versions9.31-bp155.3.3.1
rxvt-unicode SUSE:Package Hub 15 SP5All versions9.31-bp155.3.3.1
rxvt-unicode openSUSE:Leap 15.4All versions9.31-bp155.3.3.1
rxvt-unicode openSUSE:Leap 15.5All versions9.31-bp155.3.3.1
rxvt-unicode openSUSE:TumbleweedAll versions9.31-1.1

Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Rxvt-Unicode Project Rxvt-Unicode.

How do I fix CVE-2022-4170?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-4170 being exploited?

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

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-4170, GHSA-v3h7-vj8g-6x3r, MGASA-2022-0459, UBUNTU-CVE-2022-4170, openSUSE-SU-2023:0306-1, openSUSE-SU-2024:13323-1.

Is CVE-2022-4170 in your software?

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

Check your SBOMs for free