VDB

ALPINE-CVE-2021-31535

ALPINE-CVE-2021-31535 PUBLISHED CVSS 9.800000190734863 CRITICAL

Record from OSV · Published May 27, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libx11Alpine:v3.131.7.1-r0
libx11Alpine:v3.161.7.1-r0
libx11Alpine:v3.221.7.1-r0
libx11Alpine:v3.141.7.1-r0
libx11Alpine:v3.111.6.12-r1
libx11Alpine:v3.101.6.12-r1
libx11Alpine:v3.241.7.1-r0
libx11Alpine:v3.181.7.1-r0
libx11Alpine:v3.171.7.1-r0
libx11Alpine:v3.191.7.1-r0
libx11Alpine:v3.231.7.1-r0
libx11Alpine:v3.121.6.12-r1

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
Alpine:v3.13libx110, 1.2.2-r0, 1.5.0-r0
Alpine:v3.16libx110, 1.3.6-r0, 1.6.8-r0
Alpine:v3.22libx111.1.99.2-r0, 1.4.99.901-r0, 1.3.4-r0
Alpine:v3.14libx110, 1.6.9-r0, 1.4.4-r0
Alpine:v3.11libx110, 1.1.99.2-r1, 1.2-r0
Alpine:v3.10libx110, 1.3-r0, 1.5.0-r0
Alpine:v3.24libx110
Alpine:v3.18libx110, 1.2-r0, 1.2.2-r0
Alpine:v3.17libx111.3.3-r0, 1.1.99.2-r0, 1.6.7-r0
Alpine:v3.19libx110, 1.1.99.2-r0, 1.2.1-r0
Alpine:v3.23libx111.6.8-r1, 1.4.3-r2, 1.3.3-r0
Alpine:v3.12libx111.2.2-r0, 1.3-r0, 1.3.2-r0
Alpine:v3.21libx110, 1.1.99.2-r0, 1.6.0-r0
Alpine:v3.20libx110, 1.1.99.2-r1, 1.2-r0
Alpine:v3.15libx111.6.12-r0, 1.6.7-r0, 1.7.0-r0

Timeline

  • May 27, 2021 CVE Published
  • Jun 15, 2026 CVE Updated
  • Aug 8, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln ALPINE-CVE-2021-31535
vulnetix vdb fixes ALPINE-CVE-2021-31535

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/ALPINE-CVE-2021-31535/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›