{"api_version":"1","generated_at":"2026-04-22T21:37:45+00:00","cve":"CVE-2022-41966","urls":{"html":"https://cve.report/CVE-2022-41966","api":"https://cve.report/api/cve/CVE-2022-41966.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41966","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41966"},"summary":{"title":"CVE-2022-41966","description":"XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-28 00:15:00","updated_at":"2023-06-27 14:04:00"},"problem_types":["CWE-674"],"metrics":[],"references":[{"url":"https://x-stream.github.io/CVE-2022-41966.html","name":"https://x-stream.github.io/CVE-2022-41966.html","refsource":"MISC","tags":[],"title":"XStream - CVE-2022-41966","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv","name":"https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv","refsource":"MISC","tags":[],"title":"XStream can cause a Denial of Service by injecting recursive collections or maps based on element's hash values raising a stack overflow · Advisory · x-stream/xstream · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41966","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41966","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41966","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xstream_project","cpe5":"xstream","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-41966","qid":"181468","title":"Debian Security Update for libxstream-java (DLA 3267-1)"},{"cve":"CVE-2022-41966","qid":"181470","title":"Debian Security Update for libxstream-java (DSA 5315-1)"},{"cve":"CVE-2022-41966","qid":"183580","title":"Debian Security Update for libxstream-java (CVE-2022-41966)"},{"cve":"CVE-2022-41966","qid":"199237","title":"Ubuntu Security Notification for XStream Vulnerabilities (USN-5946-1)"},{"cve":"CVE-2022-41966","qid":"241746","title":"Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:3625)"},{"cve":"CVE-2022-41966","qid":"354854","title":"Amazon Linux Security Advisory for xstream : ALAS2-2023-2007"},{"cve":"CVE-2022-41966","qid":"691028","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for security/keycloak (9d9e9439-959e-11ed-b464-b42e991fc52e)"},{"cve":"CVE-2022-41966","qid":"753873","title":"SUSE Enterprise Linux Security Update for xstream (SUSE-SU-2023:1673-1)"},{"cve":"CVE-2022-41966","qid":"770196","title":"Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:3625)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-41966","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","cweId":"CWE-120"}]},{"description":[{"lang":"eng","value":"CWE-121: Stack-based Buffer Overflow","cweId":"CWE-121"}]},{"description":[{"lang":"eng","value":"CWE-502: Deserialization of Untrusted Data","cweId":"CWE-502"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"x-stream","product":{"product_data":[{"product_name":"xstream","version":{"version_data":[{"version_value":"< 1.4.20","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv","refsource":"MISC","name":"https://github.com/x-stream/xstream/security/advisories/GHSA-j563-grx4-pjpv"},{"url":"https://x-stream.github.io/CVE-2022-41966.html","refsource":"MISC","name":"https://x-stream.github.io/CVE-2022-41966.html"}]},"source":{"advisory":"GHSA-j563-grx4-pjpv","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-28 00:15:00","lastModifiedDate":"2023-06-27 14:04:00","problem_types":["CWE-674"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xstream_project:xstream:*:*:*:*:*:*:*:*","versionEndExcluding":"1.4.20","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}