High
Libx11: integer overflow in xcreateimage() leading to a heap overflow
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-43787
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 13:51 UTC · Revision 1
Source evidence
Libx11: integer overflow in xcreateimage() leading to a heap overflow
core-osv · Original sourcePublished 10 Oct 2023, 12:26 UTC
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.
osv:CVE-2023-43787
Complete source record
{
"id": "20b20d09b78d369c77090bb802970d99c026bfe50de55738c6a07d138fe88851",
"url": "https://osv.dev/vulnerability/CVE-2023-43787",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Libx11: integer overflow in xcreateimage() leading to a heap overflow",
"summary": "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.",
"evidence": "osv:CVE-2023-43787",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-43787",
"aliases": [
"CVE-2023-43787"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.freedesktop.org/xorg/lib/libx11",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c745719e23af44a4b40ab4508447637b35d91a1e"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.8.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:x.org:libx11:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.8.7"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"libX11-1.8.6",
"libX11-1.8.5",
"libX11-1.8.4",
"libX11-1.8.3",
"libX11-1.8.2",
"libX11-1.8.1",
"libX11-1.8",
"libX11-1.7.5",
"libX11-1.7.4",
"libX11-1.7.3.1",
"libX11-1.7.3",
"libX11-1.7.2",
"libX11-1.7.1",
"libX11-1.7.0",
"libX11-1.6.12",
"libX11-1.6.11",
"libX11-1.6.10",
"libX11-1.6.9",
"libX11-1.6.8",
"libX11-1.6.7",
"libX11-1.6.6",
"libX11-1.6.5",
"libX11-1.6.4",
"libX11-1.6.3",
"libX11-1.6.2",
"libX11-1.6.1",
"libX11-1.6.0",
"libX11-1.5.99.902",
"libX11-1.5.99.901",
"libX11-1.5.0",
"libX11-1.4.99.902",
"libX11-1.4.99.901",
"libX11-1.4.99.1",
"libX11-1.4.4",
"libX11-1.4.3",
"libX11-1.4.2",
"libX11-1.4.1",
"libX11-1.4.0",
"libX11-1.3.99.903",
"libX11-1.3.99.902",
"libX11-1.3.99.901",
"libX11-1.3.4",
"libX11-1.3.3",
"libX11-1.3.2",
"libX11-1.3.1",
"libX11-1.3",
"libX11-1.2.99.901",
"libX11-1.2.2",
"libX11-1.2.1",
"libX11-1.2",
"libX11-1.1.99.2",
"libX11-1.1.4",
"libX11-1.1.3",
"libX11-1.1.2",
"XORG-6_99_99_904",
"MODULAR_COPY",
"XORG-6_99_99_903",
"XORG-6_8_99_903",
"XORG-6_99_99_902",
"XORG-6_8_99_902",
"XORG-6_99_99_901",
"XORG-6_8_99_901",
"XORG-6_99_99_900",
"XORG-6_8_99_900",
"XORG-6_8_99_15",
"XORG-6_8_99_14",
"XORG-6_8_99_13",
"XORG-6_8_99_10",
"XORG-6_8_99_9",
"XORG-6_8_99_7",
"XORG-6_8_99_6",
"XORG-6_8_1",
"XORG-6_7_99_903",
"XORG-6_7_99_902",
"XORG-6_7_99_2",
"XORG-6_7_99_1",
"XACE-SELINUX-MERGE",
"XORG-MAIN"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-43787.json"
}
}
],
"modified": "2026-10-28T02:30:50.907709059Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://lists.debian.org/debian-lts-announce/2023/10/msg00005.html",
"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://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43787.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-43787",
"https://security.netapp.com/advisory/ntap-20231103-0006/",
"https://bugzilla.redhat.com/show_bug.cgi?id=2242254",
"https://gitlab.freedesktop.org/xorg/lib/libx11",
"https://jfrog.com/blog/xorg-libx11-vulns-cve-2023-43786-cve-2023-43787-part-two/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:1.6.8-8.el8"
},
{
"fixed": "0:1.7.0-9.el9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43787.json"
}
},
"related_cves": [
{
"value": "CVE-2023-43787",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 519524,
"published_at": "2023-10-10T12:26:08.102+00:00"
}