cve.bz

CVE-2021-27135

9.8 criticalEPSS 7.9%Fix available

Critical (9.8). EPSS 7.9% estimated probability of exploitation activity in the next 30 days.

On this page
xterm before Patch #366 allows remote attackers to execute arbitrary code or cause a denial of service (segmentation fault) via a crafted UTF-8 combining character sequence.

Severity

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
EPSS
7.9% (unchanged from 7.9% a week ago; 7.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27135 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27135?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27135?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-27135 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
invisible-island:xtermbefore 366
debian:debian_linux9.0
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9xterm327-2+deb9u1DLA-2558-1
Debian12, 13, 14xterm366-1DEBIAN-CVE-2021-27135
Ubuntu16.04:LTSxterm322-1ubuntu1.2UBUNTU-CVE-2021-27135 USN-4746-1
Ubuntu18.04:LTSxterm330-1ubuntu2.2UBUNTU-CVE-2021-27135 USN-4746-1
Ubuntu20.04:LTSxterm353-1ubuntu1.20.04.2UBUNTU-CVE-2021-27135 USN-4746-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationxterm, xterm-debuginfo0:295-3.el7_9.1RHSA-2021:0617
Red Hatenterprise_linux:8::appstreamxterm, xterm-resize, xterm-debuginfo and 2 more0:331-1.el8_3.2RHSA-2021:0611
Red Hatrhel_eus:8.1::appstreamxterm, xterm-resize, xterm-debuginfo and 2 more0:331-1.el8_1.1RHSA-2021:0650
Red Hatrhel_eus:8.2::appstreamxterm, xterm-resize, xterm-debuginfo and 2 more0:331-1.el8_2.1RHSA-2021:0651
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morexterm330-4.3.1SUSE-SU-2021:2013-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morexterm308-5.3.1SUSE-SU-2021:2014-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3xterm330-11.3.1SUSE-SU-2021:2011-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSxterm238-3.3.1SUSE-SU-2021:14747-1
openSUSELeap 15.2xterm330-lp152.6.3.1openSUSE-SU-2021:0900-1
openSUSELeap 15.3xterm330-11.3.1openSUSE-SU-2021:2011-1
openSUSETumbleweedxterm368-2.2openSUSE-SU-2024:11527-1
AlmaLinux8xterm, xterm-resize331-1.el8_3.2ALSA-2021:0611
Rocky Linux8xterm0:331-1.el8_3.2RLSA-2021:0611
Alpinev3.13xterm367-r0ALPINE-CVE-2021-27135
Alpinev3.14, v3.15, v3.16 and 8 morexterm366-r0ALPINE-CVE-2021-27135
Azure Linux2xterm372-1AZL-7454

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

This vulnerability can be mitigated by disabling UTF-8 support in XTerm configuration. An entry such as "XTerm.vt100.utf8: false" in Xresources will disable UTF-8. This can be set as a system default in /etc/X11/Xresources, or per-user in ~/.Xresources.

Note that this setting can still be overridden if xterm is invoked with the "-u8" command line option, so the mitigation may not protect all use cases.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7xterm-0:295-3.el7_9.1Fixed 2021-02-22RHSA-2021:0617
Red Hat Enterprise Linux 8xterm-0:331-1.el8_3.2Fixed 2021-02-18RHSA-2021:0611
Red Hat Enterprise Linux 8.1 Extended Update Supportxterm-0:331-1.el8_1.1Fixed 2021-02-24RHSA-2021:0650
Red Hat Enterprise Linux 8.2 Extended Update Supportxterm-0:331-1.el8_2.1Fixed 2021-02-24RHSA-2021:0651
Red Hat Enterprise Linux 6xtermOut of support scope
Red Hat Enterprise Linux 9xtermNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-27135.

References

Check your stackJSON