CVE-2023-3138
Reported by redhat · Published June 28, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libX11-common | Amazon Linux | 1.6.7-3.amzn2.0.3 |
| libX11-devel | Amazon Linux | 1.6.7-3.amzn2.0.3 |
| libX11 | Amazon Linux | 1.7.2-3.amzn2023.0.3, 1.6.7-3.amzn2.0.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | libX11 | libX11 1.8.6 |
| amazon:2 | libX11-common | 0 |
| amazon:2 | libX11-devel | 0 |
| amazon:2023 | libX11 | 0 |
| amazon:2 | libX11 | 0 |
| n/a | libX11 | 1.8.6 |
| amazon:2023 | libX11-devel | 0 |
| amazon:2023 | libX11-xcb | 0 |
| amazon:2023 | libX11-common | 0 |
| alpine | libx11 | 0, 0, 0 |
Timeline
- Jun 15, 2023 CVE Published
- Jun 29, 2023 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (10 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-3138
vulnetix vdb fixes CVE-2023-3138
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-3138/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart