Vulnerability · Published Oct 10, 2023 · Assigned by redhat
CVE-2023-43787Libx11: integer overflow in xcreateimage() leading to a heap overflow
High 7.8
In plain English
A high-severity heap buffer overflow in libX11. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.5%top 58.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
A vulnerability was found in libX11 due to an integer overflow within the XCreateImage() function. This flaw allows a local user to trigger an integer overflow and execute arbitrary code with elevated privileges.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libX11 | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux:9 | libX11 | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux:8 | libX11-common | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux:9 | libX11-common | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux:8 | libX11-devel | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux:9 | libX11-devel | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux:8 | libX11-xcb | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux:9 | libX11-xcb | 1.7.0-9.el9 | ALSA-2024:2145 |
| Alpine:v3.20 | libx11 | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine:v3.21 | libx11 | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine:v3.22 | libx11 | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine:v3.23 | libx11 | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine:v3.24 | libx11 | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Debian:12 | libx11 | 2:1.8.4-2+deb12u2 | DSA-5517-1 |
| Debian:12 | libx11 | 2:1.8.4-2+deb12u2 | DEBIAN-CVE-2023-43787 |
| Debian:13 | libx11 | 2:1.8.7-1 | DEBIAN-CVE-2023-43787 |
| Debian:14 | libx11 | 2:1.8.7-1 | DEBIAN-CVE-2023-43787 |
| Rocky Linux:8 | libX11 | 0:1.6.8-8.el8 | RLSA-2024:2973 |
| Rocky Linux:9 | libX11 | 0:1.7.0-9.el9 | RLSA-2024:2145 |
| Ubuntu:22.04:LTS | libx11 | 2:1.7.5-1ubuntu0.3 | UBUNTU-CVE-2023-43787 |
| Ubuntu:22.04:LTS | libx11 | 2:1.7.5-1ubuntu0.3 | USN-6407-1 |
| Ubuntu:24.04:LTS | libx11 | 2:1.8.6-1ubuntu1 | UBUNTU-CVE-2023-43787 |
| Ubuntu:22.04:LTS | libxpm | 1:3.5.12-1ubuntu0.22.04.2 | USN-6408-1 |
| Ubuntu:22.04:LTS | libxpm | 1:3.5.12-1ubuntu0.22.04.2 | UBUNTU-CVE-2023-43787 |
| Ubuntu:24.04:LTS | libxpm | 1:3.5.12-1.1ubuntu1 | UBUNTU-CVE-2023-43787 |
| Ubuntu:22.04:LTS | motif | no fix listed | UBUNTU-CVE-2023-43787 |
| Ubuntu:24.04:LTS | motif | no fix listed | UBUNTU-CVE-2023-43787 |
| Ubuntu:25.10 | motif | no fix listed | UBUNTU-CVE-2023-43787 |
| Ubuntu:26.04:LTS | motif | no fix listed | UBUNTU-CVE-2023-43787 |
| Ubuntu:26.10 | motif | no fix listed | UBUNTU-CVE-2023-43787 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libX11 | 0 – before 1.8.7 | |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- RHSA-2024:2145 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:2973 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-43787 vdb-entry, x_refsource_REDHAT
- RHBZ#2242254 issue-tracking, x_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2024/01/24/9 x_transferred
- https://jfrog.com/blog/xorg-libx11-vulns-cve-2023-43786-cve-2023-43787-part-two/ x_transferred
- https://security.netapp.com/advisory/ntap-20231103-0006/ x_transferred
- https://lists.debian.org/debian-lts-announce/2023/10/msg00005.html