{"answers":{"affected":"4 open source packages ship an affected version, including com.fasterxml.woodstox:woodstox-core. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40152 exists.","fix":"Upgrade com.fasterxml.woodstox:woodstox-core to a fixed version for your release line: 5.4.0 or 6.4.0.","what":"CVE-2022-40152 is a medium-severity denial of service vulnerability in xstream Woodstox, published on 16 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-40152 and fix it if it is affected.\n\nWhat it is: CVE-2022-40152 is a medium-severity denial of service vulnerability in xstream Woodstox, published on 16 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40152 exists.\n\nAffected packages and fixed versions:\n- com.fasterxml.woodstox:woodstox-core (Maven): affected all versions; fixed in 5.4.0\n- com.fasterxml.woodstox:woodstox-core (Maven): affected all versions; fixed in 5.4.0\n- com.fasterxml.woodstox:woodstox-core (Maven): affected from 6.0.0; fixed in 6.4.0\n- com.fasterxml.woodstox:woodstox-core (Maven): affected from 6.0.0; fixed in 6.4.0\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-40152/ (Markdown: https://insights.sbomify.com/CVE-2022-40152/index.md)","id":"CVE-2022-40152","markdown":"https://insights.sbomify.com/CVE-2022-40152/index.md","name":"CVE-2022-40152","record":{"aliases":["CLEANSTART-2026-PV59376","CLEANSTART-2026-VM58824","CLSA-2024-1733443231","CLSA-2026-1773101686","CLSA-2026-1793138767","DEBIAN-CVE-2022-40152","ECHO-811e-858f-b863","GHSA-3f7h-mf4q-vrm4","MGASA-2023-0104","MINI-94rm-82q5-6q76","MINI-h28c-hh3p-fqpr","MINI-jcf2-rr76-7f2c","OESA-2024-2378","RHLW-2026-36d9ed0bb47c794f","RHLW-2026-403d1e66c95ef9bb","RHLW-2026-dd8ed0b211be109b","SUSE-SU-2023:0679-1","UBUNTU-CVE-2022-40152","openSUSE-SU-2024:13150-1","openSUSE-SU-2026:11226-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Java XML parser","requires_auth":"low_privilege","summary":"An attacker can cause a denial of service via stack overflow in Woodstox XML parser when DTD support is enabled.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"woodstox","vendor":"fasterxml"},{"product":"xstream","vendor":"xstream"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"Those using Woodstox to parse XML data may be vulnerable to Denial of Service attacks (DOS) if DTD support is enabled. If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.","ecosystems":["Maven","SUSE:Manager Server Module 4.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Stack Buffer Overflow in Woodstox","id":"CVE-2022-40152","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":6,"n_references":2,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2022-40153"},"packages":[{"ecosystem":"Maven","fixed":["5.4.0"],"introduced":["0"],"last_affected":[],"package":"com.fasterxml.woodstox:woodstox-core","purl":null,"source":"GHSA-3f7h-mf4q-vrm4"},{"ecosystem":"Maven","fixed":["5.4.0"],"introduced":["0"],"last_affected":[],"package":"com.fasterxml.woodstox:woodstox-core","purl":"pkg:maven/com.fasterxml.woodstox/woodstox-core","source":"GHSA-3f7h-mf4q-vrm4"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["6.0.0"],"last_affected":[],"package":"com.fasterxml.woodstox:woodstox-core","purl":null,"source":"GHSA-3f7h-mf4q-vrm4"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["6.0.0"],"last_affected":[],"package":"com.fasterxml.woodstox:woodstox-core","purl":"pkg:maven/com.fasterxml.woodstox/woodstox-core","source":"GHSA-3f7h-mf4q-vrm4"},{"ecosystem":"SUSE:Manager Server Module 4.3","fixed":["4.4.2-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"woodstox","purl":"pkg:rpm/suse/woodstox\u0026distro=SUSE%20Manager%20Server%20Module%204.3","source":"SUSE-SU-2023:0679-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.2.1-1.1"],"introduced":["0"],"last_affected":[],"package":"woodstox-core","purl":"pkg:rpm/opensuse/woodstox-core\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11226-1"}],"prev":{"headline":"Stack Buffer Overflow in xstream","id":"CVE-2022-40151"},"products":["Woodstox"],"published":"2022-09-16","related":[],"sources":[{"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":"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-21","vendors":["xstream"]},"summary":"An attacker can cause a denial of service via stack overflow in Woodstox XML parser when DTD support is enabled.","url":"https://insights.sbomify.com/CVE-2022-40152/"}