Vulnerability in X.Org X (CVE-2021-31535)
Summary
Vulnerability in X.Org X (CVE-2021-31535). Successful exploitation can lead to full system takeover.
Original description
The description as published by the source.
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.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2021-31535 has been found in X.Org X.
Successful exploitation can lead to full system takeover.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "X.Org X CVE-2021-31535" on the vendor's site.
CVE-2021-31535 (X.Org X)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in X.Org X.
Check the vendor advisory for the affected versions of X.Org X.
Severity: ?. Successful exploitation can lead to full system takeover.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで X.Org X を使っているサービスとバージョンを洗い出す。
-
2Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2021-31535 libx11 Fixed in: 1.6.12-r1
- BellSoft Alpaquita BELL-CVE-2021-31535
- Debian DEBIAN-CVE-2021-31535 libx11 Fixed in: 2:1.7.1-1
References
- advisory seclists.org
- advisory openwall.com
- advisory gitlab.freedesktop.org
- advisory lists.debian.org
- advisory lists.freedesktop.org
- advisory lists.x.org
- advisory security.gentoo.org
- advisory security.netapp.com
- advisory debian.org
- advisory openwall.com
- advisory openwall.com
- report packetstormsecurity.com
- report unparalleled.eu
- report unparalleled.eu
- web lists.apache.org
- web lists.apache.org
- web lists.apache.org
- web lists.apache.org
- web lists.fedoraproject.org