CVE-2021-31535: fedoraproject fedora Classic Buffer Overflow
Vulnerability summary
CVE-2021-31535 is a critical (CVSS 9.8) Classic Buffer Overflow vulnerability in fedoraproject fedora. EPSS estimates a 10.63% chance of exploitation in the next 30 days, higher than 95.7% of scored vulnerabilities. 3 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 27-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
10.63%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
0.00 pp
From 10.63% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundExploit Reference (unparalleled.eu)
Maturity: unknown
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Exploit Reference (unparalleled.eu)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Suse32 products
- libX11&distro=HPE Helion OpenStack 8< 1.6.2-12.21.1
- libX11&distro=SUSE Enterprise Storage 6< 1.6.5-3.21.1
- libX11&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 1.6.5-3.21.1
- libX11&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.6.5-3.21.1
- libX11&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 1.6.5-3.21.1
Redhat7 products
- libX11< 0:1.6.8-5.el8 | < 0:1.6.7-4.el7_9
- libX11-common< 0:1.6.8-5.el8 | < 0:1.6.7-4.el7_9
- libX11-debuginfo< 0:1.6.8-5.el8 | < 0:1.6.7-4.el7_9
- libX11-debugsource< 0:1.6.8-5.el8
- libX11-devel< 0:1.6.8-5.el8 | < 0:1.6.7-4.el7_9
Mageia2 products
- libx11< 1.6.12-1.1.mga7
- libx11< 1.7.0-1.1.mga8
Opensuse2 products
- libX11&distro=openSUSE Leap 15.2< 1.6.5-lp152.5.15.1 | < 1.6.5-lp152.5.18.1
- libX11&distro=openSUSE Leap 15.3< 1.6.5-3.21.1
X.org2 products
- libx11< 1.7.1
- x_window_system≤ x11r7.7
Alpine1 product
- libx11< 1.6.12-r1 | < 1.7.1-r0
Debian1 product
- libx11< 2:1.7.1-1 | < 2:1.6.7-1+deb10u2 | < 2:1.6.4-3+deb9u4
Fedoraproject1 product
- fedoraEOL33
Ubuntu1 product
- libx11< 2:1.6.4-3ubuntu0.4 | < 2:1.6.9-2ubuntu1.2 | < 2:1.6.2-1ubuntu2.1+esm2 | < 2:1.6.3-1ubuntu2.2+esm1
9 vendors · 49 products
References
49 links- unparalleled.eu/publications/2021/advisory-unpar-2021-1.txtX Refsource MISCARTICLEREPORTExploitThird Party Advisory
- packetstormsecurity.com/files/162737/libX11-Insufficient-Length-Check-Injection.htmlX Refsource MISCExploitThird Party AdvisoryVDB Entry
- lists.debian.org/debian-lts-announce/2021/05/msg00021.htmlMailing ListX Refsource MLISTThird Party Advisory
- www.openwall.com/lists/oss-security/2021/05/18/3X Refsource MISCWEBREPORTMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/05/18/2X Refsource MISCREPORTMailing ListThird Party Advisory
Show all 49 references
- unparalleled.eu/blog/2021/20210518-using-xterm-to-navigate-the-huge-color-space/X Refsource MISCARTICLEREPORTExploitThird Party Advisory
- gitlab.freedesktop.org/xorg/lib/libx11/-/commit/8d2e02ae650f00c4a53deb625211a0527126c605X Refsource MISCThird Party Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory