Vulnerability · Published May 27, 2021 · Assigned by mitre

CVE-2021-31535

Critical 9.8

In plain English

A critical-severity security flaw in the libX11 package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 10.4% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)10.4%top 4.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libX111.6.8-5.el8ALSA-2021:4326
AlmaLinux:8libX11-common1.6.8-5.el8ALSA-2021:4326
AlmaLinux:8libX11-devel1.6.8-5.el8ALSA-2021:4326
AlmaLinux:8libX11-xcb1.6.8-5.el8ALSA-2021:4326
Alpine:v3.20libx111.7.1-r0ALPINE-CVE-2021-31535
Alpine:v3.21libx111.7.1-r0ALPINE-CVE-2021-31535
Alpine:v3.22libx111.7.1-r0ALPINE-CVE-2021-31535
Alpine:v3.23libx111.7.1-r0ALPINE-CVE-2021-31535
Alpine:v3.24libx111.7.1-r0ALPINE-CVE-2021-31535
Debian:12libx112:1.7.1-1DEBIAN-CVE-2021-31535
Debian:13libx112:1.7.1-1DEBIAN-CVE-2021-31535
Debian:14libx112:1.7.1-1DEBIAN-CVE-2021-31535
Rocky Linux:8libX110:1.6.8-5.el8RLSA-2021:4326

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References