CVE-2022-4170
The rxvt-unicode package is vulnerable to a remote code execution, in the Perl background...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
CVE List
9.8
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.
- Record
CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
EUVDEUVD-2022-51531
9.8
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.
- Record
EUVD-2022-51531- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-v3h7-vj8g-6x3r
9.8
The rxvt-unicode package is vulnerable to a remote code execution, in the Perl background...
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.
- Record
GHSA-v3h7-vj8g-6x3r- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-4170
9.8
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.
- Record
ALPINE-CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
9.8
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.
- Record
CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74
- Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2022-4170
9.8
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.
- Record
DEBIAN-CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVUBUNTU-CVE-2022-4170
9.8
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.
- Record
UBUNTU-CVE-2022-4170- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVMGASA-2022-0459 No score
Updated rxvt-unicode packages fix security vulnerability
rxvt-unicode 9.25 and 9.26 are vulnerable to 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. (CVE-2022-4170)
- Record
MGASA-2022-0459- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0306-1 No score
Security update for rxvt-unicode
This update for rxvt-unicode fixes the following issues:
-
Update to version 9.31: (CVE-2022-4170 boo#1206069)
- implement a fix for CVE-2022-4170 (reported and analyzed by David Leadbeater). While present in version 9.30, it should not be exploitable. It is exploitable in versions 9.25 and 9.26, at least, and allows anybody controlling output to the terminal to execute arbitrary code in the urxvt process.
- the background extension no longer requires off focus fading support to be compiled in.
- the confirm-paste extension now offers a choice betwene pasting the original or a sanitized version, and also frees up memory used to store the paste text immediately.
- fix compiling without frills.
- fix rewrapMode: never.
- fix regression that caused urxvt to no longer emit responses to OSC color queries other than OSC 4 ones.
- fix regression that caused urxvt to no longer process OSC 705.
- restore CENTURY to be 1900 to 'improve' year parsing in urclock (or at least go back to the old interpretation) (based on an analysis by Tommy Pettersson).
- exec_async (used e.g. by the matcher extension to spawn processes) now sets the URXVT_EXT_WINDOWID variable to the window id of the terminal.
- implement -fps option/refreshRate resource to change the default 60 Hz maximum refresh limiter. I always wanted an fps option, but had to wait for a user requesting it.
- new clickthrough extension.
- perl now also requires Xext.
- X region and shape extension functionality has been exposed to perl extensions.
- RENDER extension no longer depends on ENABLE_XIM_ONTHESPOT.
- Record
openSUSE-SU-2023:0306-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13323-1 No score
rxvt-unicode-9.31-1.1 on GA media
These are all security issues fixed in the rxvt-unicode-9.31-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13323-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rxvt-unicodeAlpine:v3.18 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.19 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.20 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.21 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.22 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.23 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeAlpine:v3.24 |
before 9.31-r0 | 9.31-r0 |
rxvt-unicodeDebian:12 |
All versions, plus listed versions 9.30-29.31-19.31-29.31-39.31-3.1 |
None known |
rxvt-unicodeDebian:13 |
before 9.31-1 | 9.31-1 |
rxvt-unicodeDebian:14 |
before 9.31-1 | 9.31-1 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rxvt-unicodeMageia:8 |
before 9.26-1.1.mga8 | 9.26-1.1.mga8 |
rxvt-unicodeUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 9.21-19.21-1build19.21-1ubuntu0.1~esm1 |
None known |
rxvt-unicodeUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 9.22-1build29.22-39.22-3ubuntu0.1~esm1 |
None known |
rxvt-unicodeUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 9.22-6build19.22-6build29.22-6build39.22-6ubuntu0.1~esm1 |
None known |
rxvt-unicodeUbuntu:22.04:LTS |
All versions, plus listed versions 9.22-119.26-29.30-19.30-29.30-2build1 |
None known |
rxvt-unicodeUbuntu:24.04:LTS |
All versions, plus listed versions 9.31-19.31-29.31-39.31-3build19.31-3build2 |
None known |
rxvt-unicodeUbuntu:25.10 |
All versions, plus listed versions 9.31-3build3 |
None known |
rxvt-unicodeUbuntu:26.10 |
All versions, plus listed versions 9.31-3build49.31-3build5 |
None known |
rxvt-unicodeUbuntu:26.04:LTS |
All versions, plus listed versions 9.31-3build39.31-3build4 |
None known |
rxvt-unicodeSUSE:Package Hub 15 SP4 |
before 9.31-bp155.3.3.1 | 9.31-bp155.3.3.1 |
rxvt-unicodeSUSE:Package Hub 15 SP5 |
before 9.31-bp155.3.3.1 | 9.31-bp155.3.3.1 |
rxvt-unicodeopenSUSE:Leap 15.4 |
before 9.31-bp155.3.3.1 | 9.31-bp155.3.3.1 |
rxvt-unicodeopenSUSE:Leap 15.5 |
before 9.31-bp155.3.3.1 | 9.31-bp155.3.3.1 |
rxvt-unicodeopenSUSE:Tumbleweed |
before 9.31-1.1 | 9.31-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-4170 is a critical vulnerability (CVSS 9.8) in Rxvt-unicode Project Rxvt-unicode, published December 9, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.22%, the 82nd percentile. Fixed in rxvt-unicode 9.31-r0.
References
bugzilla.redhat.com/show_bug.cgi?id=2151597
openwall.com/lists/oss-security/2022/12/05/1
security.gentoo.org/glsa/202310-20
nvd.nist.gov/vuln/detail/CVE-2022-4170
github.com/advisories/GHSA-v3h7-vj8g-6x3r
security.alpinelinux.org/vuln/CVE-2022-4170
Show 10 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4170.json
security-tracker.debian.org/tracker/CVE-2022-4170
advisories.mageia.org/MGASA-2022-0459.html
bugs.mageia.org/show_bug.cgi?id=31226
ubuntu.com/security/CVE-2022-4170
cvs.schmorp.de/rxvt-unicode/src/perl/background?r1=1.105&r2=1.109
cve.org/CVERecord?id=CVE-2022-4170
lists.opensuse.org/archives/list/[email protected]/thread/HJFJQGRU5ZFB7SWTSO2FUE3CKDHSOPB7
bugzilla.suse.com/1206069
suse.com/security/cve/CVE-2022-4170