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 :

Nov. 21, 2024, 8:16 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2023-3138 has a 5 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

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).

None

Makefile Shell M4 C Perl

Updated: 1 week, 4 days ago
0 stars 0 fork 0 watcher
Born at : Dec. 11, 2024, 8:40 a.m. This repo has been linked 5 different CVEs too.

Core X11 protocol client library

Makefile Shell M4 C Perl

Updated: 2 months, 3 weeks 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: 1 year, 1 month 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, 3 months 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, 2 weeks ago
0 stars 1 fork 1 watcher
Born at : March 19, 2021, 11:41 a.m. This repo has been linked 82 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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/security/cve/CVE-2023-3138
    Added Reference https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c
    Added Reference https://lists.x.org/archives/xorg-announce/2023-June/003406.html
    Added Reference https://lists.x.org/archives/xorg-announce/2023-June/003407.html
    Added Reference https://security.netapp.com/advisory/ntap-20231208-0008/
  • 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.13 }} -0.00%

score

0.48359

percentile

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