{"answers":{"affected":"It affects 10 products.","exploited":"There is no known exploitation of CVE-2018-1311 in the wild and no public exploit code.","fix":"Apply a workaround.","what":"CVE-2018-1311 is a high-severity use after free vulnerability in Debian Debian Linux, published on 18 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-1311 and fix it if it is affected.\n\nWhat it is: CVE-2018-1311 is a high-severity use after free vulnerability in Debian Debian Linux, published on 18 Dec 2019. 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-2018-1311 in the wild and no public exploit code.\n\nAffected product: Debian Debian 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-2018-1311/ (Markdown: https://insights.sbomify.com/CVE-2018-1311/index.md)","id":"CVE-2018-1311","markdown":"https://insights.sbomify.com/CVE-2018-1311/index.md","name":"CVE-2018-1311","record":{"aliases":["DEBIAN-CVE-2018-1311","DLA-2498-1","DSA-4814-1","ECHO-8795-b753-f167","GHSA-7rpp-hwhj-9hv8","MGASA-2020-0296","OESA-2024-1160","OESA-2024-1232","OESA-2024-1233","OESA-2024-1234","OESA-2024-1235","OESA-2024-1236","RHSA-2020:0702","RHSA-2020:0704","SUSE-SU-2021:2920-1","SUSE-SU-2021:2944-1","SUSE-SU-2021:2958-1","SUSE-SU-2024:0299-1","SUSE-SU-2024:0300-1","SUSE-SU-2024:0320-1","UBUNTU-CVE-2018-1311","USN-6579-1","USN-6579-2","openSUSE-SU-2021:1231-1","openSUSE-SU-2021:2958-1","openSUSE-SU-2024:13540-1"],"analysis":{"component_type":"library","fix_type":"workaround","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"XML parsing library","requires_auth":"none","summary":"A use-after-free flaw in Apache Xerces-C allows attackers to cause denial of service or execute code via malicious external DTDs.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"xerces-c\\+\\+","vendor":"apache"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"goldengate","vendor":"oracle"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"The Apache Xerces-C 3.0.0 to 3.2.3 XML parser contains a use-after-free error triggered during the scanning of external DTDs. This flaw has not been addressed in the maintained version of the library and has no current mitigation other than to disable DTD processing. This can be accomplished via the DOM using a standard parser feature, or via SAX using the XERCES_DISABLE_DTD environment variable.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","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-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","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 15 SP4-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","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 Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.0","SUSE:Manager Proxy 4.3","SUSE:Manager Retail Branch Server 4.0","SUSE:Manager Server 4.0","SUSE:Manager Server 4.3","openSUSE:Leap 15.2","openSUSE:Leap 15.3","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2022-01-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-01-20T13:43:38Z","kind":"github_poc","ref":"https://github.com/johnjamesmccann/xerces-3.2.3-DTD-hotfix","stars":0,"title":"// SPDX-FileCopyrightText: Portions Copyright 2021 Siemens   // Modified on 15-Jul-2021 by Siemens and/or its affiliates to fix CVE-2018-1311: Apache Xerces-C use-after-free vulnerability scanning external DTD. Copyright 2021 Siemens."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Use after free in Apache Xerces-C","id":"CVE-2018-1311","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","redhat:enterprise_linux_desktop","redhat:enterprise_linux_eus","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation"],"type":"use_after_free","year":"2018"},"n_packages":74,"n_references":14,"next":{"headline":"Security feature bypass in Apache HTTP Server","id":"CVE-2018-1312"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.0.1-21.el6_10"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0702"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/redhat/xerces-c","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-debuginfo","purl":"pkg:rpm/redhat/xerces-c-debuginfo","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-devel","purl":"pkg:rpm/redhat/xerces-c-devel","source":"RHSA-2020:0704"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.1.1-10.el7_7"],"introduced":["0"],"last_affected":[],"package":"xerces-c-doc","purl":"pkg:rpm/redhat/xerces-c-doc","source":"RHSA-2020:0704"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["3.1.4-3.6.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:2920-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["3.1.4-150200.10.11.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:0300-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["3.2.3-150300.3.6.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:0320-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["3.1.4-3.6.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2021:2920-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["3.1.4-3.6.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2021:2920-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["3.1.4-150200.10.11.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2024:0300-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["3.1.4-150200.10.11.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2024:0300-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["3.2.3-150300.3.6.1"],"introduced":["0"],"last_affected":[],"package":"xerces-c","purl":"pkg:rpm/suse/xerces-c\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2024:0320-1"}],"prev":{"headline":"Apache NiFi JMS Deserialization issue","id":"CVE-2018-1310"},"products":["Apache Xerces-C"],"published":"2019-12-18","related":[{"cvss_score":9.8,"headline":"Null dereference in Apache Xerces C++","id":"CVE-2017-12627","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2016-2099","kev_date_added":null,"published":"2016-05-13"},{"cvss_score":8.2,"headline":"HCL BigFix Platform is vulnerable to an integer overflow in xerces-c++ 3.2.3","id":"CVE-2023-37536","kev_date_added":null,"published":"2023-10-11"},{"cvss_score":8.1,"headline":"Apache Xerces C++: Use-after-free on external DTD scan","id":"CVE-2024-23807","kev_date_added":null,"published":"2024-02-28"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2008-4482","kev_date_added":null,"published":"2008-10-08"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2012-0880","kev_date_added":null,"published":"2017-08-08"}],"sources":[{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Apache Software Foundation"]},"summary":"A use-after-free flaw in Apache Xerces-C allows attackers to cause denial of service or execute code via malicious external DTDs.","url":"https://insights.sbomify.com/CVE-2018-1311/"}