CVE-2023-3138

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-3138
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-3138.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-3138
Related
Published
2023-06-28T21:15:10Z
Modified
2024-10-12T10:55:13.065741Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.15 / libx11

Package

Name
libx11
Purl
pkg:apk/alpine/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.3.1-r1

Affected versions

1.*

1.1.99.2-r0
1.1.99.2-r1
1.2-r0
1.2.1-r0
1.2.2-r0
1.3-r0
1.3.2-r0
1.3.3-r0
1.3.3-r1
1.3.4-r0
1.3.5-r0
1.3.6-r0
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.99.1-r0
1.4.99.901-r0
1.5.0-r0
1.5.99.902-r0
1.6.0-r0
1.6.1-r0
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.3-r1
1.6.3-r2
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.5-r2
1.6.6-r0
1.6.7-r0
1.6.8-r0
1.6.8-r1
1.6.9-r0
1.6.10-r0
1.6.11-r0
1.6.12-r0
1.7.0-r0
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3.1-r0

Alpine:v3.16 / libx11

Package

Name
libx11
Purl
pkg:apk/alpine/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8-r1

Affected versions

1.*

1.1.99.2-r0
1.1.99.2-r1
1.2-r0
1.2.1-r0
1.2.2-r0
1.3-r0
1.3.2-r0
1.3.3-r0
1.3.3-r1
1.3.4-r0
1.3.5-r0
1.3.6-r0
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.99.1-r0
1.4.99.901-r0
1.5.0-r0
1.5.99.902-r0
1.6.0-r0
1.6.1-r0
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.3-r1
1.6.3-r2
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.5-r2
1.6.6-r0
1.6.7-r0
1.6.8-r0
1.6.8-r1
1.6.9-r0
1.6.10-r0
1.6.11-r0
1.6.12-r0
1.7.0-r0
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3.1-r0
1.7.5-r0
1.8-r0

Alpine:v3.17 / libx11

Package

Name
libx11
Purl
pkg:apk/alpine/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.4-r1

Affected versions

1.*

1.1.99.2-r0
1.1.99.2-r1
1.2-r0
1.2.1-r0
1.2.2-r0
1.3-r0
1.3.2-r0
1.3.3-r0
1.3.3-r1
1.3.4-r0
1.3.5-r0
1.3.6-r0
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.99.1-r0
1.4.99.901-r0
1.5.0-r0
1.5.99.902-r0
1.6.0-r0
1.6.1-r0
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.3-r1
1.6.3-r2
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.5-r2
1.6.6-r0
1.6.7-r0
1.6.8-r0
1.6.8-r1
1.6.9-r0
1.6.10-r0
1.6.11-r0
1.6.12-r0
1.7.0-r0
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3.1-r0
1.7.5-r0
1.8-r0
1.8.1-r0
1.8.1-r1
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.4-r0

Alpine:v3.18 / libx11

Package

Name
libx11
Purl
pkg:apk/alpine/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.4-r4

Affected versions

1.*

1.1.99.2-r0
1.1.99.2-r1
1.2-r0
1.2.1-r0
1.2.2-r0
1.3-r0
1.3.2-r0
1.3.3-r0
1.3.3-r1
1.3.4-r0
1.3.5-r0
1.3.6-r0
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.99.1-r0
1.4.99.901-r0
1.5.0-r0
1.5.99.902-r0
1.6.0-r0
1.6.1-r0
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.3-r1
1.6.3-r2
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.5-r2
1.6.6-r0
1.6.7-r0
1.6.8-r0
1.6.8-r1
1.6.9-r0
1.6.10-r0
1.6.11-r0
1.6.12-r0
1.7.0-r0
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3.1-r0
1.7.5-r0
1.8-r0
1.8.1-r0
1.8.1-r1
1.8.2-r0
1.8.2-r1
1.8.2-r2
1.8.3-r0
1.8.3-r1
1.8.4-r0
1.8.4-r1
1.8.4-r2
1.8.4-r3

Debian:11 / libx11

Package

Name
libx11
Purl
pkg:deb/debian/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.7.2-1+deb11u1

Affected versions

2:1.*

2:1.7.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / libx11

Package

Name
libx11
Purl
pkg:deb/debian/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.8.4-2+deb12u1

Affected versions

2:1.*

2:1.8.4-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / libx11

Package

Name
libx11
Purl
pkg:deb/debian/libx11?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.8.6-1

Affected versions

2:1.*

2:1.8.4-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / gitlab.freedesktop.org/xorg/lib/libx11

Affected ranges

Type
GIT
Repo
https://gitlab.freedesktop.org/xorg/lib/libx11
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

MODULAR_COPY
XACE-SELINUX-MERGE
XORG-6_7_99_1
XORG-6_7_99_2
XORG-6_7_99_902
XORG-6_7_99_903
XORG-6_8_1
XORG-6_8_99_10
XORG-6_8_99_13
XORG-6_8_99_14
XORG-6_8_99_15
XORG-6_8_99_6
XORG-6_8_99_7
XORG-6_8_99_9
XORG-6_8_99_900
XORG-6_8_99_901
XORG-6_8_99_902
XORG-6_8_99_903
XORG-6_99_99_900
XORG-6_99_99_901
XORG-6_99_99_902
XORG-6_99_99_903
XORG-6_99_99_904
XORG-MAIN
libX11-1_0_1
libX11-1_0_2
libX11-1_0_3

libX11-1.*

libX11-1.0.99.1
libX11-1.0.99.2
libX11-1.1
libX11-1.1-RC1
libX11-1.1-RC2
libX11-1.1.1
libX11-1.1.2
libX11-1.1.3
libX11-1.1.4
libX11-1.1.99.2
libX11-1.2
libX11-1.2.1
libX11-1.2.2
libX11-1.2.99.901
libX11-1.3
libX11-1.3.1
libX11-1.3.2
libX11-1.3.3
libX11-1.3.4
libX11-1.3.99.901
libX11-1.3.99.902
libX11-1.3.99.903
libX11-1.4.0
libX11-1.4.1
libX11-1.4.2
libX11-1.4.3
libX11-1.4.4
libX11-1.4.99.1
libX11-1.4.99.901
libX11-1.4.99.902
libX11-1.5.0
libX11-1.5.99.901
libX11-1.5.99.902
libX11-1.6.0
libX11-1.6.1
libX11-1.6.10
libX11-1.6.11
libX11-1.6.12
libX11-1.6.2
libX11-1.6.3
libX11-1.6.4
libX11-1.6.5
libX11-1.6.6
libX11-1.6.7
libX11-1.6.8
libX11-1.6.9
libX11-1.7.0
libX11-1.7.1
libX11-1.7.2
libX11-1.7.3
libX11-1.7.3.1
libX11-1.7.4
libX11-1.7.5
libX11-1.8
libX11-1.8.1
libX11-1.8.2
libX11-1.8.3
libX11-1.8.4
libX11-1.8.5