CVE-2023-43787Libx11: integer overflow in xcreateimage() leading to a heap overflow
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | motif | Fix pending | UBUNTU-CVE-2023-43787 | |
| Ubuntu 26.04 | motif | Under investigation | UBUNTU-CVE-2023-43787 | |
| Ubuntu 25.10 | motif | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | UBUNTU-CVE-2023-43787 | |
| Ubuntu 24.04 | libx11 | Fixed | 2:1.8.6-1ubuntu1 | UBUNTU-CVE-2023-43787 |
| Ubuntu 24.04 | libxpm | Fixed | 1:3.5.12-1.1ubuntu1 | UBUNTU-CVE-2023-43787 |
| Ubuntu 24.04 | motif | Under investigation | UBUNTU-CVE-2023-43787 | |
| Ubuntu 22.04 | libx11 | Fixed | 2:1.7.5-1ubuntu0.3 | UBUNTU-CVE-2023-43787 |
| Ubuntu 22.04 | libxpm | Fixed | 1:3.5.12-1ubuntu0.22.04.2 | UBUNTU-CVE-2023-43787 |
| Ubuntu 22.04 | motif | Under investigation | UBUNTU-CVE-2023-43787 | |
| Ubuntu 20.04 | libx11 | Fixed | 2:1.6.9-2ubuntu1.6 | UBUNTU-CVE-2023-43787 |
| Ubuntu 20.04 | libxpm | Fixed | 1:3.5.12-1ubuntu0.20.04.2 | UBUNTU-CVE-2023-43787 |
| Ubuntu 20.04 | motif | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | UBUNTU-CVE-2023-43787 | |
| Ubuntu 18.04 | libx11 | Fix pending | 2:1.6.4-3ubuntu0.4+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 18.04 | libxpm | Fix pending | 1:3.5.12-1ubuntu0.18.04.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 18.04 | motif | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | UBUNTU-CVE-2023-43787 | |
| Ubuntu 16.04 | libx11 | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | 2:1.6.3-1ubuntu2.2+esm4 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 16.04 | libxpm | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | 1:3.5.11-1ubuntu0.16.04.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 16.04 | motif | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | UBUNTU-CVE-2023-43787 | |
| Ubuntu 14.04 | libx11 | Fix pending | 2:1.6.2-1ubuntu2.1+esm5 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 14.04 | libxpm | Fix pending | 1:3.5.10-1ubuntu0.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-43787 |
| Ubuntu 14.04 | motif | Will not fix issue is in libx11, but libxpm was also fixed to avoid passing invalid data | UBUNTU-CVE-2023-43787 | |
| Debian 14 | libx11 | Fixed | 2:1.8.7-1 | DEBIAN-CVE-2023-43787 |
| Debian 13 | libx11 | Fixed | 2:1.8.7-1 | DEBIAN-CVE-2023-43787 |
| Debian 12 | libx11 | Fixed | 2:1.8.4-2+deb12u2 | DEBIAN-CVE-2023-43787 |
| Red Hat Enterprise Linux 9 | libX11 | Fixed | 0:1.7.0-9.el9 | RHSA-2024:2145 |
| Red Hat Enterprise Linux 9 | libX11-common | Fixed | 0:1.7.0-9.el9 | RHSA-2024:2145 |
| Red Hat Enterprise Linux 9 | libX11-devel | Fixed | 0:1.7.0-9.el9 | RHSA-2024:2145 |
| Red Hat Enterprise Linux 9 | libX11-xcb | Fixed | 0:1.7.0-9.el9 | RHSA-2024:2145 |
| Red Hat Enterprise Linux 8 | libX11 | Fixed | 0:1.6.8-8.el8 | RHSA-2024:2973 |
| Red Hat Enterprise Linux 8 | libX11-common | Fixed | 0:1.6.8-8.el8 | RHSA-2024:2973 |
| Red Hat Enterprise Linux 8 | libX11-devel | Fixed | 0:1.6.8-8.el8 | RHSA-2024:2973 |
| Red Hat Enterprise Linux 8 | libX11-xcb | Fixed | 0:1.6.8-8.el8 | RHSA-2024:2973 |
| Red Hat Enterprise Linux 7 | libX11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libX11-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libX11-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11-devel | Will not fix Out of support scope | ||
| AlmaLinux 9 | libX11 | Fixed | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux 9 | libX11-common | Fixed | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux 9 | libX11-devel | Fixed | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux 9 | libX11-xcb | Fixed | 1.7.0-9.el9 | ALSA-2024:2145 |
| AlmaLinux 8 | libX11 | Fixed | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux 8 | libX11-common | Fixed | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux 8 | libX11-devel | Fixed | 1.6.8-8.el8 | ALSA-2024:2973 |
| AlmaLinux 8 | libX11-xcb | Fixed | 1.6.8-8.el8 | ALSA-2024:2973 |
| Rocky Linux 9 | libX11 | Fixed | 0:1.7.0-9.el9 | RLSA-2024:2145 |
| Rocky Linux 8 | libX11 | Fixed | 0:1.6.8-8.el8 | RLSA-2024:2973 |
| Alpine Linux 3.24 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.23 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.22 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.21 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.20 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.19 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.18 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.17 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
| Alpine Linux 3.16 | libx11 | Fixed | 1.8.7-r0 | ALPINE-CVE-2023-43787 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libX11: affected: before 1.8.7; fixed in
1.8.7 - Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:2145 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2973 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:2145
- https://access.redhat.com/errata/RHSA-2024:2973
- https://access.redhat.com/security/cve/CVE-2023-43787
- https://bugzilla.redhat.com/show_bug.cgi?id=2242254
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.