Skip to content
Heist/ feed
Back to feed
Medium

In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header

Type: advisorySources: OSV

When an application opts into DelegatingDeserializer, a producer can grow the consumer's heap without bound by sending records with unique random spring.kafka.serialization.selector header values, eventually causing GC thrash and OutOfMemoryError. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-41726
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:46 UTC · Revision 1

Source evidence

In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header

core-osv · Original source

Published 9 Jun 2026, 23:48 UTC

When an application opts into DelegatingDeserializer, a producer can grow the consumer's heap without bound by sending records with unique random spring.kafka.serialization.selector header values, eventually causing GC thrash and OutOfMemoryError. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.

osv:CVE-2026-41726
Complete source record
{
  "id": "db73a9b4eae8d9b297baffda7552c74b5a4d2f4704f8aaf58e5db126010cbd72",
  "url": "https://osv.dev/vulnerability/CVE-2026-41726",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "In Spring for Apache Kafka, unbounded delegate cache keyed on user-controlled, potentially malicious selector header",
    "summary": "When an application opts into DelegatingDeserializer, a producer can grow the consumer's heap without bound by sending records with unique random spring.kafka.serialization.selector header values, eventually causing GC thrash and OutOfMemoryError. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.",
    "evidence": "osv:CVE-2026-41726",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-41726",
      "aliases": [
        "CVE-2026-41726",
        "GHSA-xvfq-4q6q-gxx7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-kafka",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f1b207daac91ddc880c0883ec759809464c78700"
                },
                {
                  "last_affected": "4fef8fb7a43d18042468233e8aea1ab34f5c842f"
                },
                {
                  "introduced": "a9001bf4c2cae68ad5d58c65d4d588922fec00f6"
                },
                {
                  "last_affected": "5572a82b1a6c931d9a1656cadf8ba3df59102492"
                },
                {
                  "introduced": "1d8378bff7169aa7c111857c1dab0c6f8c330e3f"
                },
                {
                  "last_affected": "9f3fefff292c25c972ffbc7122a30c776e37e018"
                },
                {
                  "introduced": "fb5b3ea1976cbd7846d5df555fa5e687b68364d9"
                },
                {
                  "last_affected": "d3b3f85a3cf6571e4b2f4b64641e281050459ca7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.0.5"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.3.0"
                      },
                      {
                        "last_affected": "3.3.15"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "introduced": "2.9.0"
                      },
                      {
                        "last_affected": "2.9.13"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "introduced": "2.8.0"
                      },
                      {
                        "last_affected": "2.8.11"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.3.15",
            "v4.0.5",
            "v4.0.4",
            "v3.3.14",
            "v4.0.3",
            "v3.3.13",
            "v4.0.2",
            "v3.3.12",
            "v4.0.1",
            "v4.0.0",
            "v3.3.11",
            "v3.3.10",
            "v3.3.9",
            "v3.3.8",
            "v3.3.7",
            "v3.3.6",
            "v3.3.5",
            "v3.3.4",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v2.9.13",
            "v2.9.12",
            "v2.9.11",
            "v2.9.10",
            "v2.9.9",
            "v2.9.8",
            "v2.9.7",
            "v2.9.6",
            "v2.9.5",
            "v2.9.4",
            "v2.9.3",
            "v2.8.11",
            "v2.9.2",
            "v2.8.10",
            "v2.9.1",
            "v2.8.9",
            "v2.9.0",
            "v2.8.8",
            "v2.8.7",
            "v2.8.6",
            "v2.8.5",
            "v2.8.4",
            "v2.8.3",
            "v2.8.2",
            "v2.8.1",
            "v2.8.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41726.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.466307859Z",
      "provider": "osv",
      "references": [
        "https://spring.io/security/cve-2026-41726",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41726.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-41726"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-770"
        ],
        "cna_assigner": "vmware",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "4.0.5.1"
                  },
                  {
                    "introduced": "3.3.0"
                  },
                  {
                    "fixed": "3.3.15.1"
                  },
                  {
                    "introduced": "3.2.0"
                  },
                  {
                    "fixed": "3.2.14"
                  },
                  {
                    "introduced": "2.9.0"
                  },
                  {
                    "fixed": "2.9.14"
                  },
                  {
                    "introduced": "2.8.0"
                  },
                  {
                    "fixed": "2.8.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41726.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-41726",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519043,
  "published_at": "2026-06-09T23:48:51.048+00:00"
}