Skip to content
Heist/ feed
High

jackson-dataformats-binary: CBOR parser does not enforce StreamReadConstraints.maxNameLength, enabling memory-exhaustion denial of service

Type: advisorySource: Official CVE List1 source record

The CBOR parser in FasterXML jackson-dataformats-binary never invokes StreamReadConstraints.validateNameLength() when decoding JSON object property names, so the maxNameLength limit is not enforced for this format. CBORParser._decodeLongerName() decodes a definite-length property name with no length check, and CBORParser._decodeChunkedName() delegates to the value-oriented _finishChunkedText() routine, which validates maxStringLength rather than maxNameLength. An attacker who can have a CBOR document parsed may therefore embed a single property name of unbounded length; the parser buffers the whole name in memory before returning it, whatever maxNameLength is configured to. Because StreamReadConstraints.maxDocumentLength is also disabled by default, nothing else bounds the name under default settings, so the only limits are the attacker's upload capacity and available heap, leading to memory exhaustion and denial of service. No privileges beyond the ability to submit data to a parsing endpoint are required, and exploitation needs only that the bytes reach CBORFactory parsing, directly or through an ObjectMapper configured with the CBOR module. jackson-core's own JSON parsers enforce maxNameLength incrementally during name decoding; this gap is specific to the binary formats. maxNameLength and validateNameLength were introduced in jackson-core 2.16.0, so releases before 2.16.0 do not contain the constraint that is left unenforced. This issue is tracked together with the Smile

Announced Group revision 1
Original source ↗

CVE-2026-68495

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-68495

jackson-dataformats-binary

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

jackson-dataformats-binary

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/FasterXML/jackson-dataformats-binary",
    "vendor": "FasterXML",
    "product": "jackson-dataformats-binary",
    "versions": [
      {
        "status": "affected",
        "version": "2.16.0",
        "versionType": "maven",
        "lessThanOrEqual": "2.18.9"
      },
      {
        "status": "affected",
        "version": "2.19.0",
        "versionType": "maven",
        "lessThanOrEqual": "2.21.5"
      },
      {
        "status": "affected",
        "version": "2.22.0",
        "versionType": "maven",
        "lessThanOrEqual": "2.22.1"
      }
    ],
    "packageName": "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor",
    "collectionURL": "https://repo1.maven.org/maven2",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "com.fasterxml.jackson.dataformat.cbor.CBORParser._decodeLongerName"
      },
      {
        "name": "com.fasterxml.jackson.dataformat.cbor.CBORParser._decodeChunkedName"
      }
    ]
  },
  {
    "repo": "https://github.com/FasterXML/jackson-dataformats-binary",
    "vendor": "FasterXML",
    "product": "jackson-dataformats-binary",
    "versions": [
      {
        "status": "affected",
        "version": "3.0.0",
        "versionType": "maven",
        "lessThanOrEqual": "3.1.5"
      },
      {
        "status": "affected",
        "version": "3.2.0",
        "versionType": "maven",
        "lessThanOrEqual": "3.2.1"
      }
    ],
    "packageName": "tools.jackson.dataformat:jackson-dataformat-cbor",
    "collectionURL": "https://repo1.maven.org/maven2",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "tools.jackson.dataformat.cbor.CBORParser._decodeLongerName"
      },
      {
        "name": "tools.jackson.dataformat.cbor.CBORParser._decodeChunkedName"
      }
    ]
  }
]
Related CVEs
CVE-2026-68495

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#7622 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement