7.5
HIGH
CVE-2023-3138
X.Org libX11 Out-of-Bounds Write Vulnerability
Description

A vulnerability was found in libX11. The security flaw occurs because the functions in src/InitExt.c in libX11 do not check that the values provided for the Request, Event, or Error IDs are within the bounds of the arrays that those functions write to, using those IDs as array indexes. They trust that they were called with values provided by an Xserver adhering to the bounds specified in the X11 protocol, as all X servers provided by X.Org do. As the protocol only specifies a single byte for these values, an out-of-bounds value provided by a malicious server (or a malicious proxy-in-the-middle) can only overwrite other portions of the Display structure and not write outside the bounds of the Display structure itself, possibly causing the client to crash with this memory corruption.

INFO

Published Date :

June 28, 2023, 9:15 p.m.

Last Modified :

Dec. 8, 2023, 7:15 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2023-3138 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-3138 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux
1 X.org libx11
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-3138.

URL Resource
https://access.redhat.com/security/cve/CVE-2023-3138 Third Party Advisory
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c Patch
https://lists.x.org/archives/xorg-announce/2023-June/003406.html Mailing List Patch
https://lists.x.org/archives/xorg-announce/2023-June/003407.html Mailing List Patch
https://security.netapp.com/advisory/ntap-20231208-0008/

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Core X11 protocol client library

Makefile Shell M4 C Perl

Updated: 5 months ago
0 stars 0 fork 0 watcher
Born at : April 13, 2024, 4:12 p.m. This repo has been linked 5 different CVEs too.

None

Makefile Shell M4 C Perl

Updated: 10 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Nov. 5, 2023, 5:32 p.m. This repo has been linked 5 different CVEs too.

None

Makefile Shell M4 C Perl

Updated: 2 years ago
0 stars 1 fork 1 watcher
Born at : Aug. 15, 2022, 11:38 a.m. This repo has been linked 5 different CVEs too.

None

Shell Python

Updated: 1 month, 1 week ago
0 stars 1 fork 1 watcher
Born at : March 19, 2021, 11:41 a.m. This repo has been linked 81 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-3138 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-3138 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Dec. 08, 2023

    Action Type Old Value New Value
    Added Reference Red Hat, Inc. https://security.netapp.com/advisory/ntap-20231208-0008/ [No types assigned]
  • Initial Analysis by [email protected]

    Jul. 07, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://access.redhat.com/security/cve/CVE-2023-3138 No Types Assigned https://access.redhat.com/security/cve/CVE-2023-3138 Third Party Advisory
    Changed Reference Type https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c No Types Assigned https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c Patch
    Changed Reference Type https://lists.x.org/archives/xorg-announce/2023-June/003406.html No Types Assigned https://lists.x.org/archives/xorg-announce/2023-June/003406.html Mailing List, Patch
    Changed Reference Type https://lists.x.org/archives/xorg-announce/2023-June/003407.html No Types Assigned https://lists.x.org/archives/xorg-announce/2023-June/003407.html Mailing List, Patch
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:a:x.org:libx11:*:*:*:*:*:*:*:* versions up to (excluding) 1.8.6
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-3138 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.10 }} 0.02%

score

0.41505

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability