{"api_version":"1","generated_at":"2026-12-02T20:17:00+00:00","cve":"CVE-2026-59406","urls":{"html":"https://cve.report/CVE-2026-59406","api":"https://cve.report/api/cve/CVE-2026-59406.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-59406","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-59406"},"summary":{"title":"In Spring for Apache Kafka, denial of service via memory-allocating types in header mapper default trusted packages","description":"When mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserialize each header value into the type named for it in the producer-controlled spring_json_header_types header, provided that type's package is trusted. Because org.springframework.util is trusted by default, a producer can declare org.springframework.util.ResizableByteArrayOutputStream and supply a number as the header value, causing the consumer to allocate a buffer of that size while mapping the header.\n\n With Jackson 3, a single header with a large value raises an OutOfMemoryError that is not caught by the mapper, so the listener container stops before the record is committed, and stops again on the same record after a restart. With Jackson 2, a single record carrying many such headers can exhaust the heap with the same result. In both cases, a small record is enough for a malicious producer to repeatedly stop consumption and put memory pressure on the whole application.\n\n An application is affected if it consumes records from a topic that an attacker can produce to and maps headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default for @KafkaListener methods and other listeners using the messaging message converters.","state":"PUBLISHED","assigner":"vmware","published_at":"2026-12-02 08:17:44","updated_at":"2026-12-02 19:26:40"},"problem_types":[],"metrics":[{"version":"3.1","source":"security@vmware.com","type":"Secondary","score":"6.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"6.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H&version=3.1","name":"https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H&version=3.1","refsource":"security@vmware.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://spring.io/security/cve-2026-59406","name":"https://spring.io/security/cve-2026-59406","refsource":"security@vmware.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-59406","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59406","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 4.1.0 4.1.2.1 semver","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 4.0.0 4.0.8.1 semver","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 3.0.0 3.3.18 semver","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 2.9.0 2.9.16 semver","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 2.8.14 semver","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 4.1.0 4.1.3 OSS","platforms":[]},{"source":"CNA","vendor":"Spring","product":"Spring for Apache Kafka","version":"affected 4.0.0 4.0.9 OSS","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"This vulnerability was discovered and responsibly reported by JIHUN KIM .","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"Spring for Apache Kafka","vendor":"Spring","versions":[{"lessThan":"4.1.2.1","status":"affected","version":"4.1.0","versionType":"semver"},{"lessThan":"4.0.8.1","status":"affected","version":"4.0.0","versionType":"semver"},{"lessThan":"3.3.18","status":"affected","version":"3.0.0","versionType":"semver"},{"lessThan":"2.9.16","status":"affected","version":"2.9.0","versionType":"semver"},{"lessThan":"2.8.14","status":"affected","version":"0","versionType":"semver"},{"lessThan":"4.1.3","status":"affected","version":"4.1.0","versionType":"OSS"},{"lessThan":"4.0.9","status":"affected","version":"4.0.0","versionType":"OSS"}]}],"credits":[{"lang":"en","value":"This vulnerability was discovered and responsibly reported by JIHUN KIM ."}],"descriptions":[{"lang":"en","value":"When mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserialize each header value into the type named for it in the producer-controlled spring_json_header_types header, provided that type's package is trusted. Because org.springframework.util is trusted by default, a producer can declare org.springframework.util.ResizableByteArrayOutputStream and supply a number as the header value, causing the consumer to allocate a buffer of that size while mapping the header.\n\n With Jackson 3, a single header with a large value raises an OutOfMemoryError that is not caught by the mapper, so the listener container stops before the record is committed, and stops again on the same record after a restart. With Jackson 2, a single record carrying many such headers can exhaust the heap with the same result. In both cases, a small record is enough for a malicious producer to repeatedly stop consumption and put memory pressure on the whole application.\n\n An application is affected if it consumes records from a topic that an attacker can produce to and maps headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default for @KafkaListener methods and other listeners using the messaging message converters."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"dateUpdated":"2026-12-02T07:11:40.690Z","orgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","shortName":"vmware"},"references":[{"url":"https://spring.io/security/cve-2026-59406"},{"url":"https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H&version=3.1"}],"title":"In Spring for Apache Kafka, denial of service via memory-allocating types in header mapper default trusted packages"}},"cveMetadata":{"assignerOrgId":"dcf2e128-44bd-42ed-91e8-88f912c1401d","assignerShortName":"vmware","cveId":"CVE-2026-59406","datePublished":"2026-12-02T07:11:40.690Z","dateReserved":"2026-07-04T18:15:49.110Z","dateUpdated":"2026-12-02T07:11:40.690Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-02 08:17:44","lastModifiedDate":"2026-12-02 19:26:40","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"security@vmware.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":3.6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"59406","Ordinal":"1","Title":"In Spring for Apache Kafka, denial of service via memory-allocat","CVE":"CVE-2026-59406","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"59406","Ordinal":"1","NoteData":"When mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserialize each header value into the type named for it in the producer-controlled spring_json_header_types header, provided that type's package is trusted. Because org.springframework.util is trusted by default, a producer can declare org.springframework.util.ResizableByteArrayOutputStream and supply a number as the header value, causing the consumer to allocate a buffer of that size while mapping the header.\n\n With Jackson 3, a single header with a large value raises an OutOfMemoryError that is not caught by the mapper, so the listener container stops before the record is committed, and stops again on the same record after a restart. With Jackson 2, a single record carrying many such headers can exhaust the heap with the same result. In both cases, a small record is enough for a malicious producer to repeatedly stop consumption and put memory pressure on the whole application.\n\n An application is affected if it consumes records from a topic that an attacker can produce to and maps headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper , which is the default for @KafkaListener methods and other listeners using the messaging message converters.","Type":"Description","Title":"In Spring for Apache Kafka, denial of service via memory-allocat"}]}}}