{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-49043 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2022-49043 is a high-severity use after free vulnerability in Xmlsoft Libxml2, published on 26 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-49043 and fix it if it is affected.\n\nWhat it is: CVE-2022-49043 is a high-severity use after free vulnerability in Xmlsoft Libxml2, published on 26 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-49043 in the wild and no public exploit code.\n\nAffected product: Xmlsoft Libxml2. 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-2022-49043/ (Markdown: https://insights.sbomify.com/CVE-2022-49043/index.md)","id":"CVE-2022-49043","markdown":"https://insights.sbomify.com/CVE-2022-49043/index.md","name":"CVE-2022-49043","record":{"aliases":["ALSA-2025:1350","ALSA-2025:1517","AZL-55967","CLSA-2025-1739961336","CLSA-2025-1742577756","CLSA-2025-1742578098","CLSA-2025-1742914538","CLSA-2025-1761139574","CLSA-2025-1761673925","CLSA-2026-1778491896","CLSA-2026-1778492595","CLSA-2026-1779215759","DEBIAN-CVE-2022-49043","ECHO-fd8a-6039-c2c3","GHSA-84p5-cqqq-h4gr","JLSEC-2025-85","MGASA-2025-0034","OESA-2025-1104","RHSA-2025:1350","RHSA-2025:1516","RHSA-2025:1517","RLSA-2025:1517","SUSE-SU-2025:0300-1","SUSE-SU-2025:0303-1","SUSE-SU-2025:0341-1","SUSE-SU-2025:0348-1","UBUNTU-CVE-2022-49043"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"libxml2 library","requires_auth":"none","summary":"A use-after-free vulnerability in libxml2 allows attackers to execute arbitrary code or cause a denial of service via crafted XML input.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"libxml2","vendor":"xmlsoft"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"xmlXIncludeAddNode in xinclude.c in libxml2 before 2.11.0 has a use-after-free.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.2::baseos","Rocky Linux:8","SUSE:Enterprise Storage 7.1","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 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.6"],"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":"Use after free in libxml2","id":"CVE-2022-49043","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"xmlsoft:libxml2","products":["xmlsoft:libxml2"],"type":"use_after_free","year":"2022"},"n_packages":81,"n_references":2,"next":{"headline":"dm integrity: fix memory corruption when tag_size is less than digest size","id":"CVE-2022-49044"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/almalinux/libxml2","source":"ALSA-2025:1517"},{"ecosystem":"AlmaLinux:8","fixed":["2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/almalinux/libxml2-devel","source":"ALSA-2025:1517"},{"ecosystem":"AlmaLinux:8","fixed":["2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2","purl":"pkg:rpm/almalinux/python3-libxml2","source":"ALSA-2025:1517"},{"ecosystem":"AlmaLinux:9","fixed":["2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/almalinux/libxml2","source":"ALSA-2025:1350"},{"ecosystem":"AlmaLinux:9","fixed":["2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/almalinux/libxml2-devel","source":"ALSA-2025:1350"},{"ecosystem":"AlmaLinux:9","fixed":["2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2","purl":"pkg:rpm/almalinux/python3-libxml2","source":"ALSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2","purl":"pkg:rpm/redhat/python3-libxml2","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1517"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2","purl":"pkg:rpm/redhat/python3-libxml2","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.9.13-6.el9_5.1"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1350"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-devel","purl":"pkg:rpm/redhat/libxml2-devel","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/redhat/libxml2","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-debuginfo","purl":"pkg:rpm/redhat/libxml2-debuginfo","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"libxml2-debugsource","purl":"pkg:rpm/redhat/libxml2-debugsource","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2","purl":"pkg:rpm/redhat/python3-libxml2","source":"RHSA-2025:1516"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:2.9.13-3.el9_2.4"],"introduced":["0"],"last_affected":[],"package":"python3-libxml2-debuginfo","purl":"pkg:rpm/redhat/python3-libxml2-debuginfo","source":"RHSA-2025:1516"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.9.7-18.el8_10.2"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/rocky-linux/libxml2?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2025:1517"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.9.7-150000.3.73.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2025:0303-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.9.7-150000.3.73.1"],"introduced":["0"],"last_affected":[],"package":"python-libxml2-python","purl":"pkg:rpm/suse/python-libxml2-python\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2025:0303-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.9.7-150000.3.73.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2025:0303-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.9.7-150000.3.73.1"],"introduced":["0"],"last_affected":[],"package":"python-libxml2-python","purl":"pkg:rpm/suse/python-libxml2-python\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2025:0303-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.9.14-150400.5.35.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/suse/libxml2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:0341-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.9.14-150400.5.35.1"],"introduced":["0"],"last_affected":[],"package":"libxml2-python","purl":"pkg:rpm/suse/libxml2-python\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:0341-1"}],"prev":{"headline":"An inclusion of functionality from untrusted control sphere vulnerability in MinGW DLL component in Synology Hyper Backup Explorer before 3.","id":"CVE-2022-49042"},"products":["libxml2"],"published":"2025-01-26","related":[{"cvss_score":9.8,"headline":"XML external entity in n/a","id":"CVE-2017-16931","kev_date_added":null,"published":"2017-11-23"},{"cvss_score":9.1,"headline":"Information disclosure in n/a","id":"CVE-2017-8872","kev_date_added":null,"published":"2017-05-10"},{"cvss_score":8,"headline":"Memory corruption in libxml2","id":"CVE-2026-86140","kev_date_added":null,"published":"2026-09-05"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2024-34459","kev_date_added":null,"published":"2024-05-13"},{"cvss_score":7.5,"headline":"Use after free in n/a","id":"CVE-2024-25062","kev_date_added":null,"published":"2024-02-04"},{"cvss_score":7.5,"headline":"Nokogiri gem, via libxml, is affected by DoS vulnerabilities","id":"CVE-2017-16932","kev_date_added":null,"published":"2017-11-23"}],"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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["xmlsoft"]},"summary":"A use-after-free vulnerability in libxml2 allows attackers to execute arbitrary code or cause a denial of service via crafted XML input.","url":"https://insights.sbomify.com/CVE-2022-49043/"}