CVE-2026-68495: jackson-dataformats-binary: CBOR parser does not enforce StreamReadConstraints.maxNameLength, enabling memory-exhaustion denial of service
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 parser defect in the same vendor advisory, GHSA-3v8f-v6vx-fmrm, which covers both binary formats. The CBOR parser defect (jackson-dataformats-binary issue #725) is CVE-2026-68495; the Smile parser defect (issue #726) is assigned CVE-2026-68496.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
com.fasterxml.jackson.dataformat:jackson-dataformat-cborto a version that resolves this vulnerability.Fixed in 2.18.10
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are exposed when untrusted CBOR reaches CBORFactory parsing, either directly or through an ObjectMapper configured with the CBOR module. Jackson-core JSON parsers are not described as affected.
What does an attacker need to exploit it?
An attacker needs only the ability to submit a CBOR document to a parsing endpoint. No privileges or user interaction are required.
Are default constraint settings sufficient to limit the impact?
No. The CBOR parser does not enforce maxNameLength, and maxDocumentLength is disabled by default, leaving the attacker’s upload capacity and available heap as the stated limits.
What configuration-based limit is relevant if remediation cannot be applied immediately?
The data identifies maxDocumentLength as the other relevant size control, but it is disabled by default. maxNameLength alone does not constrain CBOR property-name length in the affected parser paths.