TROYANOSYVIRUS
Back to CVEs

CVE-2021-31535

CRITICAL
9.8

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.

CVE Details

CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published5/27/2021
Last Modified11/21/2024
Sourcenvd
Honeypot Sightings0

Affected Products

fedoraproject:fedorax.org:libx11x.org:x_window_system

Weaknesses (CWE)

CWE-120

References

http://seclists.org/fulldisclosure/2021/May/52(af854a3a-2127-422b-91ae-364da2661108)
http://www.openwall.com/lists/oss-security/2021/05/18/2(af854a3a-2127-422b-91ae-364da2661108)
https://lists.freedesktop.org/archives/xorg/(af854a3a-2127-422b-91ae-364da2661108)
https://security.gentoo.org/glsa/202105-16(af854a3a-2127-422b-91ae-364da2661108)
https://security.netapp.com/advisory/ntap-20210813-0001/(af854a3a-2127-422b-91ae-364da2661108)
https://www.debian.org/security/2021/dsa-4920(af854a3a-2127-422b-91ae-364da2661108)
https://www.openwall.com/lists/oss-security/2021/05/18/2(af854a3a-2127-422b-91ae-364da2661108)
https://www.openwall.com/lists/oss-security/2021/05/18/3(af854a3a-2127-422b-91ae-364da2661108)

IOC Correlations

No correlations recorded

This product uses data from the NVD API but is not endorsed or certified by the NVD.