CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 10% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2021-31535 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-31535?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-31535?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-31535 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| x.org:libx11 | before 1.7.1 |
| x.org:x_window_system | through x11r7.7 |
| fedoraproject:fedora | 33 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | libx11 | 2:1.6.4-3+deb9u4 | DLA-2666-1 |
| Debian | 10 | libx11 | 2:1.6.7-1+deb10u2 | DSA-4920-1 |
| Debian | 12, 13, 14 | libx11 | 2:1.7.1-1 | DEBIAN-CVE-2021-31535 |
| Ubuntu | 18.04:LTS | libx11 | 2:1.6.4-3ubuntu0.4 | UBUNTU-CVE-2021-31535 USN-4966-1 |
| Ubuntu | 20.04:LTS | libx11 | 2:1.6.9-2ubuntu1.2 | UBUNTU-CVE-2021-31535 USN-4966-1 |
| Ubuntu | Pro:14.04:LTS | libx11 | 2:1.6.2-1ubuntu2.1+esm2 | UBUNTU-CVE-2021-31535 USN-4966-2 |
| Ubuntu | Pro:16.04:LTS | libx11 | 2:1.6.3-1ubuntu2.2+esm1 | UBUNTU-CVE-2021-31535 USN-4966-2 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstation | libX11, libX11-devel, libX11-common and 1 more | 0:1.6.7-4.el7_9 | RHSA-2021:3296 |
| Red Hat | enterprise_linux:7::computenode | libX11-devel, libX11-debuginfo | 0:1.6.7-4.el7_9 | RHSA-2021:3296 |
| Red Hat | enterprise_linux:7::hypervisor | redhat-virtualization-host, redhat-virtualization-host-image-update | 0:4.3.18-20210903.0.el7_9 | RHSA-2021:3477 |
| Red Hat | enterprise_linux:8::appstream | libX11, libX11-xcb, libX11-devel and 4 more | 0:1.6.8-5.el8 | RHSA-2021:4326 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 more | libX11 | 1.6.5-3.21.1 | SUSE-SU-2021:1897-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 more | libX11 | 1.6.2-12.21.1 | SUSE-SU-2021:1892-1 |
| SUSE | Linux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3 | libX11 | 1.6.5-3.18.1 | SUSE-SU-2021:1765-1 |
| SUSE | Linux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSS | xorg-x11-libX11 | 7.4-5.11.72.27.1 | SUSE-SU-2021:14748-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | libX11 | 1.6.2-12.18.1 | SUSE-SU-2021:1766-1 |
| openSUSE | Leap 15.2 | libX11 | 1.6.5-lp152.5.15.1 | openSUSE-SU-2021:0807-1 |
| openSUSE | Leap 15.2 | libX11 | 1.6.5-lp152.5.18.1 | openSUSE-SU-2021:0857-1 |
| openSUSE | Leap 15.3 | libX11 | 1.6.5-3.21.1 | openSUSE-SU-2021:1897-1 |
| openSUSE | Tumbleweed | libX11 | 1.7.2-1.2 | openSUSE-SU-2024:10918-1 |
| AlmaLinux | 8 | libX11, libX11-xcb, libX11-devel and 1 more | 1.6.8-5.el8 | ALSA-2021:4326 |
| Rocky Linux | 8 | libX11 | 0:1.6.8-5.el8 | RLSA-2021:4326 |
| Alpine | v3.10, v3.11, v3.12 | libx11 | 1.6.12-r1 | ALPINE-CVE-2021-31535 |
| Alpine | v3.13, v3.14, v3.15 and 9 more | libx11 | 1.7.1-r0 | ALPINE-CVE-2021-31535 |
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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
This flaw was rated with an important severity as it allows an attacker to inject X11 protocol commands on X clients with the privileges of the application linked with the libX11 library, potentially having administrative privileges. However, Red Hat Enterprise Linux 8 and 9 do not run the Xorg server with root privileges, lowering the security impact of this issue. For this reason, Red Hat Enterprise Linux 8 and 9 have been rated with a moderate severity.
xterm should not be used to display less trusted data, e.g. from SSH connections to less trusted remote machines.
To avoid attacks via .Xdefaults on kiosk type machines, where graphical user has no permission to execute arbitrary operating system commands or sometimes not even to send hardware keyboard keystrokes, the .Xdefaults must not be modifiable by the user.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3.8 for RHEL 7 | ansible-tower-38/ansible-tower-rhel7:3.8.4-1 | Fixed 2021-09-08 | RHBA-2021:3472 |
| Red Hat Enterprise Linux 7 | libX11-0:1.6.7-4.el7_9 | Fixed 2021-08-30 | RHSA-2021:3296 |
| Red Hat Enterprise Linux 8 | libX11-0:1.6.8-5.el8 | Fixed 2021-11-09 | RHSA-2021:4326 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 | redhat-virtualization-host-0:4.3.18-20210903.0.el7_9 | Fixed 2021-09-09 | RHSA-2021:3477 |
| Red Hat Enterprise Linux 6 | libX11 | Out of support scope | |
| Red Hat Enterprise Linux 9 | libX11 | Not 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-31535.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).