{"answers":{"affected":"3 open source packages ship an affected version, including lxml. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-2309 in the wild and no public exploit code.","fix":"Upgrade lxml to 4.9.1 or later.","what":"CVE-2022-2309 is a medium-severity vulnerability in Fedoraproject Fedora, published on 5 Jul 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-2309 and fix it if it is affected.\n\nWhat it is: CVE-2022-2309 is a medium-severity vulnerability in Fedoraproject Fedora, published on 5 Jul 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-2309 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- lxml (PyPI): affected all versions; fixed in 4.9.1\n- lxml (PyPI): affected all versions; fixed in 4.9.1\n- lxml (PyPI): affected all versions; fixed in 4.9.1\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-2309/ (Markdown: https://insights.sbomify.com/CVE-2022-2309/index.md)","id":"CVE-2022-2309","markdown":"https://insights.sbomify.com/CVE-2022-2309/index.md","name":"CVE-2022-2309","record":{"aliases":["ALPINE-CVE-2022-2309","ALSA-2022:8226","AZL-10058","AZL-10059","CLSA-2026-1779225366","CLSA-2026-1791271358","DEBIAN-CVE-2022-2309","GHSA-wrxv-2j5q-m38w","MGASA-2022-0331","OESA-2022-1790","OESA-2024-1413","OESA-2024-1414","PYSEC-2022-230","RHSA-2022:8226","RLSA-2022:8226","SUSE-SU-2022:2878-1","SUSE-SU-2022:2908-1","UBUNTU-CVE-2022-2309","openSUSE-SU-2024:12273-1","openSUSE-SU-2024:12290-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python XML library","requires_auth":"none","summary":"Attackers can cause a denial of service via crafted XML input processed by the iterwalk function in lxml when used with specific libxml2 versions.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"lxml","vendor":"lxml"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.0"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.","ecosystems":["AlmaLinux:9","PyPI","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9","SUSE:Enterprise Storage 7","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15","SUSE:Linux Enterprise Module for Python 2 15 SP3","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","openSUSE:Leap 15.3","openSUSE:Leap 15.4","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":"NULL Pointer Dereference in lxml/lxml","id":"CVE-2022-2309","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"null_dereference","year":"2022"},"n_packages":25,"n_references":6,"next":{"headline":"Skyhigh SWG Authentication bypass vulnerability","id":"CVE-2022-2310"},"packages":[{"ecosystem":"PyPI","fixed":["4.9.1"],"introduced":["0"],"last_affected":[],"package":"lxml","purl":null,"source":"GHSA-wrxv-2j5q-m38w"},{"ecosystem":"PyPI","fixed":["4.9.1"],"introduced":["0"],"last_affected":[],"package":"lxml","purl":"pkg:pypi/lxml","source":"GHSA-wrxv-2j5q-m38w"},{"ecosystem":"PyPI","fixed":["4.9.1"],"introduced":["0"],"last_affected":[],"package":"lxml","purl":"pkg:pypi/lxml","source":"PYSEC-2022-230"},{"ecosystem":"AlmaLinux:9","fixed":["4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/almalinux/python3-lxml","source":"ALSA-2022:8226"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/redhat/python-lxml","source":"RHSA-2022:8226"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python-lxml-debugsource","purl":"pkg:rpm/redhat/python-lxml-debugsource","source":"RHSA-2022:8226"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python3-lxml","purl":"pkg:rpm/redhat/python3-lxml","source":"RHSA-2022:8226"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python3-lxml-debuginfo","purl":"pkg:rpm/redhat/python3-lxml-debuginfo","source":"RHSA-2022:8226"},{"ecosystem":"Rocky Linux:9","fixed":["0:4.6.5-3.el9"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/rocky-linux/python-lxml?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2022:8226"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15","fixed":["4.7.1-150100.6.6.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015","source":"SUSE-SU-2022:2878-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 2 15 SP3","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP3","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Manager Proxy 4.1","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Manager%20Proxy%204.1","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.1","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"SUSE:Manager Server 4.1","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/suse/python-lxml\u0026distro=SUSE%20Manager%20Server%204.1","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/opensuse/python-lxml\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["4.7.1-150200.3.10.1"],"introduced":["0"],"last_affected":[],"package":"python-lxml","purl":"pkg:rpm/opensuse/python-lxml\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:2908-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.10.1-1.1"],"introduced":["0"],"last_affected":[],"package":"libxml2","purl":"pkg:rpm/opensuse/libxml2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12290-1"}],"prev":{"headline":"Information disclosure in Linux kernel","id":"CVE-2022-2308"},"products":["lxml/lxml"],"published":"2022-07-05","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"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":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"2025-11-04","vendors":["lxml"]},"summary":"Attackers can cause a denial of service via crafted XML input processed by the iterwalk function in lxml when used with specific libxml2 versions.","url":"https://insights.sbomify.com/CVE-2022-2309/"}