{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-40674 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2022-40674 is a high-severity use after free vulnerability in Debian Debian Linux, published on 14 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-40674 and fix it if it is affected.\n\nWhat it is: CVE-2022-40674 is a high-severity use after free vulnerability in Debian Debian Linux, published on 14 Sep 2022. 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-2022-40674 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-2022-40674/ (Markdown: https://insights.sbomify.com/CVE-2022-40674/index.md)","id":"CVE-2022-40674","markdown":"https://insights.sbomify.com/CVE-2022-40674/index.md","name":"CVE-2022-40674","record":{"aliases":["ALPINE-CVE-2022-40674","ALSA-2022:6838","ALSA-2022:6878","ALSA-2022:7020","ALSA-2022:7023","ALSA-2022:7024","ALSA-2022:7026","ALSA-2023:3068","AZL-10921","CLEANSTART-2026-QW19145","CLSA-2022-1664192553","CLSA-2022-1664192692","CLSA-2022-1664192814","CLSA-2022-1664192896","CLSA-2022-1664193203","DEBIAN-CVE-2022-40674","DLA-3119-1","DSA-5236-1","GHSA-2vq2-xc55-3j5m","JLSEC-2025-57","MGASA-2022-0352","MGASA-2022-0397","MGASA-2022-0399","OESA-2022-1932","OESA-2022-2019","RHSA-2022:6831","RHSA-2022:6832","RHSA-2022:6833","RHSA-2022:6834","RHSA-2022:6838","RHSA-2022:6878","RHSA-2022:6921","RHSA-2022:6967","RHSA-2022:6995","RHSA-2022:6996","RHSA-2022:6997","RHSA-2022:6998","RHSA-2022:7019","RHSA-2022:7020","RHSA-2022:7021","RHSA-2022:7022","RHSA-2022:7023","RHSA-2022:7024","RHSA-2022:7025","RHSA-2022:7026","RHSA-2023:3068","RLSA-2022:6838","RLSA-2022:6878","RLSA-2022:7023","RLSA-2022:7024","RLSA-2023:3068","SUSE-SU-2022:3466-1","SUSE-SU-2022:3489-1","SUSE-SU-2022:3597-1","UBUNTU-CVE-2022-40674","USN-5638-1","openSUSE-SU-2024:12359-1"],"analysis":{"component_type":"library","fix_type":"upgrade","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 vulnerability in libexpat allows attackers to execute arbitrary code or cause 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":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"libexpat","vendor":"libexpat_project"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","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":"libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_e4s:8.1::baseos","Red Hat:rhel_els:6","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.2::baseos","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_eus:8.4::baseos","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","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-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP4-LTSS","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-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-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","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.2","openSUSE:Tumbleweed"],"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 n/a","id":"CVE-2022-40674","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","libexpat_project:libexpat"],"type":"use_after_free","year":"2022"},"n_packages":141,"n_references":12,"next":{"headline":"Weak cryptography in FortiNAC","id":"CVE-2022-40675"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2.2.5-8.el8_6.3"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/almalinux/expat","source":"ALSA-2022:6878"},{"ecosystem":"AlmaLinux:8","fixed":["2.2.5-8.el8_6.3"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/almalinux/expat-devel","source":"ALSA-2022:6878"},{"ecosystem":"AlmaLinux:8","fixed":["102.3.0-7.el8_6.alma"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/almalinux/firefox","source":"ALSA-2022:7024"},{"ecosystem":"AlmaLinux:8","fixed":["2.4.8-2.el8"],"introduced":["0"],"last_affected":[],"package":"mingw32-expat","purl":"pkg:rpm/almalinux/mingw32-expat","source":"ALSA-2023:3068"},{"ecosystem":"AlmaLinux:8","fixed":["2.4.8-2.el8"],"introduced":["0"],"last_affected":[],"package":"mingw64-expat","purl":"pkg:rpm/almalinux/mingw64-expat","source":"ALSA-2023:3068"},{"ecosystem":"AlmaLinux:8","fixed":["102.3.0-4.el8_6.alma"],"introduced":["0"],"last_affected":[],"package":"thunderbird","purl":"pkg:rpm/almalinux/thunderbird","source":"ALSA-2022:7023"},{"ecosystem":"AlmaLinux:9","fixed":["2.2.10-12.el9_0.3"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/almalinux/expat","source":"ALSA-2022:6838"},{"ecosystem":"AlmaLinux:9","fixed":["2.2.10-12.el9_0.3"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/almalinux/expat-devel","source":"ALSA-2022:6838"},{"ecosystem":"AlmaLinux:9","fixed":["102.3.0-7.el9_0.alma"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/almalinux/firefox","source":"ALSA-2022:7020"},{"ecosystem":"AlmaLinux:9","fixed":["102.3.0-4.el9_0.alma.plus"],"introduced":["0"],"last_affected":[],"package":"thunderbird","purl":"pkg:rpm/almalinux/thunderbird","source":"ALSA-2022:7026"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/redhat/expat","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/redhat/expat-devel","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-static","purl":"pkg:rpm/redhat/expat-static","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/redhat/firefox","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox-debuginfo","purl":"pkg:rpm/redhat/firefox-debuginfo","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird","purl":"pkg:rpm/redhat/thunderbird","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird-debuginfo","purl":"pkg:rpm/redhat/thunderbird-debuginfo","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/redhat/expat-devel","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-static","purl":"pkg:rpm/redhat/expat-static","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/redhat/expat","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/redhat/expat-devel","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-static","purl":"pkg:rpm/redhat/expat-static","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/redhat/firefox","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox-debuginfo","purl":"pkg:rpm/redhat/firefox-debuginfo","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird","purl":"pkg:rpm/redhat/thunderbird","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird-debuginfo","purl":"pkg:rpm/redhat/thunderbird-debuginfo","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/redhat/expat","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/redhat/expat-devel","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.1.0-15.el7_9"],"introduced":["0"],"last_affected":[],"package":"expat-static","purl":"pkg:rpm/redhat/expat-static","source":"RHSA-2022:6834"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/redhat/firefox","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:102.3.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"firefox-debuginfo","purl":"pkg:rpm/redhat/firefox-debuginfo","source":"RHSA-2022:6997"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird","purl":"pkg:rpm/redhat/thunderbird","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:102.3.0-4.el7_9"],"introduced":["0"],"last_affected":[],"package":"thunderbird-debuginfo","purl":"pkg:rpm/redhat/thunderbird-debuginfo","source":"RHSA-2022:6998"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:102.3.0-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"firefox","purl":"pkg:rpm/redhat/firefox","source":"RHSA-2022:7024"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:102.3.0-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"firefox-debuginfo","purl":"pkg:rpm/redhat/firefox-debuginfo","source":"RHSA-2022:7024"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:102.3.0-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"firefox-debugsource","purl":"pkg:rpm/redhat/firefox-debugsource","source":"RHSA-2022:7024"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2022-40673"},"products":["n/a"],"published":"2022-09-14","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"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":"2026-10-14","vendors":["n/a"]},"summary":"A use-after-free vulnerability in libexpat allows attackers to execute arbitrary code or cause denial of service via crafted XML input.","url":"https://insights.sbomify.com/CVE-2022-40674/"}