{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-3138 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-3138 is a high-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 28 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-3138 and fix it if it is affected.\n\nWhat it is: CVE-2023-3138 is a high-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 28 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-3138 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-3138/ (Markdown: https://insights.sbomify.com/CVE-2023-3138/index.md)","id":"CVE-2023-3138","markdown":"https://insights.sbomify.com/CVE-2023-3138/index.md","name":"CVE-2023-3138","record":{"aliases":["ALPINE-CVE-2023-3138","ALSA-2023:6497","ALSA-2023:7029","AZL-27274","CLSA-2025-1745270046","DEBIAN-CVE-2023-3138","DLA-3472-1","DSA-5433-1","GHSA-849h-8wj5-xmx8","JLSEC-2026-472","MGASA-2023-0206","OESA-2023-1376","OESA-2023-1377","OESA-2023-1378","OESA-2023-1392","RHSA-2023:6497","RHSA-2023:7029","RHSA-2024:1088","RHSA-2024:1417","SUSE-SU-2023:2531-1","SUSE-SU-2023:2614-1","UBUNTU-CVE-2023-3138","USN-6168-1","USN-6168-2","openSUSE-SU-2024:13008-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"X11 client library","requires_auth":"none","summary":"A malicious X server or proxy can cause client crashes via out-of-bounds writes in libX11 due to missing bounds checks on protocol IDs.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"enterprise_linux","vendor":"redhat"},{"product":"libx11","vendor":"x.org"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP4-ESPOS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory corruption in libX11","id":"CVE-2023-3138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux"],"type":"memory_corruption","year":"2023"},"n_packages":68,"n_references":5,"next":{"headline":"Protect WP Admin \u003c 4.0 - Unauthenticated Protection Bypass","id":"CVE-2023-3139"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/almalinux/libX11","source":"ALSA-2023:7029"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/almalinux/libX11-common","source":"ALSA-2023:7029"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/almalinux/libX11-devel","source":"ALSA-2023:7029"},{"ecosystem":"AlmaLinux:8","fixed":["1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/almalinux/libX11-xcb","source":"ALSA-2023:7029"},{"ecosystem":"AlmaLinux:9","fixed":["1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/almalinux/libX11","source":"ALSA-2023:6497"},{"ecosystem":"AlmaLinux:9","fixed":["1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/almalinux/libX11-common","source":"ALSA-2023:6497"},{"ecosystem":"AlmaLinux:9","fixed":["1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/almalinux/libX11-devel","source":"ALSA-2023:6497"},{"ecosystem":"AlmaLinux:9","fixed":["1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/almalinux/libX11-xcb","source":"ALSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/redhat/libX11","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/redhat/libX11-common","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-debuginfo","purl":"pkg:rpm/redhat/libX11-debuginfo","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-debugsource","purl":"pkg:rpm/redhat/libX11-debugsource","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/redhat/libX11-devel","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/redhat/libX11-xcb","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.6.8-6.el8"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb-debuginfo","purl":"pkg:rpm/redhat/libX11-xcb-debuginfo","source":"RHSA-2023:7029"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/redhat/libX11","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/redhat/libX11-common","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-debuginfo","purl":"pkg:rpm/redhat/libX11-debuginfo","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-debugsource","purl":"pkg:rpm/redhat/libX11-debugsource","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/redhat/libX11-devel","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/redhat/libX11-xcb","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.0-8.el9"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb-debuginfo","purl":"pkg:rpm/redhat/libX11-xcb-debuginfo","source":"RHSA-2023:6497"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/redhat/libX11","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/redhat/libX11-common","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-debuginfo","purl":"pkg:rpm/redhat/libX11-debuginfo","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-debugsource","purl":"pkg:rpm/redhat/libX11-debugsource","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/redhat/libX11-devel","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/redhat/libX11-xcb","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["0:1.6.8-6.el8_8"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb-debuginfo","purl":"pkg:rpm/redhat/libX11-xcb-debuginfo","source":"RHSA-2024:1417"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/redhat/libX11","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-common","purl":"pkg:rpm/redhat/libX11-common","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-debuginfo","purl":"pkg:rpm/redhat/libX11-debuginfo","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-debugsource","purl":"pkg:rpm/redhat/libX11-debugsource","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-devel","purl":"pkg:rpm/redhat/libX11-devel","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb","purl":"pkg:rpm/redhat/libX11-xcb","source":"RHSA-2024:1088"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.7.0-8.el9_2"],"introduced":["0"],"last_affected":[],"package":"libX11-xcb-debuginfo","purl":"pkg:rpm/redhat/libX11-xcb-debuginfo","source":"RHSA-2024:1088"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["1.6.5-150000.3.30.1"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/suse/libX11\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:2614-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["1.6.5-150000.3.30.1"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/suse/libX11\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:2614-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["1.6.5-150000.3.30.1"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/suse/libX11\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:2614-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["1.6.5-150000.3.30.1"],"introduced":["0"],"last_affected":[],"package":"libX11","purl":"pkg:rpm/suse/libX11\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:2614-1"}],"prev":{"headline":"MailArchiver \u003c= 2.10.1 - Unauthenticated Stored Cross-Site Scripting via Email Subject","id":"CVE-2023-3136"},"products":["libX11"],"published":"2023-06-28","related":[{"cvss_score":9.8,"headline":"Red Hat JBoss RichFaces Framework Expression Language Injection","id":"CVE-2018-14667","kev_date_added":"2023-09-28","published":"2018-11-06"},{"cvss_score":9.8,"headline":"Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit","id":"CVE-2021-20325","kev_date_added":null,"published":"2022-02-18"},{"cvss_score":9.8,"headline":"Memory corruption in libwebp","id":"CVE-2018-25011","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Other in libwebp","id":"CVE-2018-25014","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Supply chain in redhat-upgrade-tool","id":"CVE-2014-3585","kev_date_added":null,"published":"2019-11-22"},{"cvss_score":9.3,"headline":"Squid: request/response smuggling in http/1.1 and icap","id":"CVE-2023-46846","kev_date_added":null,"published":"2023-11-03"},{"cvss_score":9.1,"headline":"Memory corruption in libwebp","id":"CVE-2018-25009","kev_date_added":null,"published":"2021-05-21"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"A malicious X server or proxy can cause client crashes via out-of-bounds writes in libX11 due to missing bounds checks on protocol IDs.","url":"https://insights.sbomify.com/CVE-2023-3138/"}