First published: Tue May 18 2021(Updated: )
LookupCol.c in X.Org X through X11R7.7 and libX11 before 1.7.1 might allow remote attackers to execute arbitrary code. The libX11 XLookupColor request (intended for server-side color lookup) contains a flaw allowing a client to send color-name requests with a name longer than the maximum size allowed by the protocol (and also longer than the maximum packet size for normal-sized packets). The user-controlled data exceeding the maximum size is then interpreted by the server as additional X protocol requests and executed, e.g., to disable X server authorization completely. For example, if the victim encounters malicious terminal control sequences for color codes, then the attacker may be able to take full control of the running graphical session.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/redhat-virtualization-host | <0:4.3.18-20210903.0.el7_9 | 0:4.3.18-20210903.0.el7_9 |
debian/libx11 | <=2:1.7.0-2<=2:1.6.7-1<=2:1.6.7-1+deb10u1 | 2:1.6.7-1+deb10u2 2:1.7.1-1 |
X.Org libX11 | <1.7.1 | |
X.org X Window System | <=x11r7.7 | |
Fedoraproject Fedora | =33 | |
debian/libx11 | 2:1.6.7-1+deb10u2 2:1.6.7-1+deb10u4 2:1.7.2-1+deb11u1 2:1.7.2-1+deb11u2 2:1.8.4-2+deb12u1 2:1.8.4-2+deb12u2 2:1.8.7-1 |
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.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-31535 is a vulnerability in libX11 that allows remote attackers to execute arbitrary code.
CVE-2021-31535 has a severity rating of 9.8 (critical).
The libX11 package with versions before 1.7.1 on Red Hat, libX11 package with various versions on Debian, X.Org libX11 with versions before 1.7.1, X.org X Window System up to inclusive x11r7.7, and Fedoraproject Fedora 33 are affected.
To fix CVE-2021-31535, update libX11 to version 1.7.1 on Red Hat, update libX11 to the recommended versions on Debian, and update X.Org libX11 to version 1.7.1.
More information about CVE-2021-31535 can be found at the following references: [Reference 1], [Reference 2], [Reference 3]