CVE-2026-68495
jackson-dataformats-binary: CBOR parser does not enforce StreamReadConstraints.maxNameLength, enabling memory-exhaustion denial of service
Description
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.fasterxml.jackson.dataformat » jackson-dataformat-cborpreliminary | >= 2.16.0, <= 2.18.9>= 2.19.0, <= 2.21.5>= 2.22.0, <= 2.22.1 | - |
| tools.jackson.dataformat » jackson-dataformat-cborpreliminary | >= 3.0.0, <= 3.1.5>= 3.2.0, <= 3.2.1 | - |
Blast radius
56% of the dependent artifacts (2,606) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 27,849 |
| 2 hops | 45,167 |
| 3 hops | 61,501 |
| 4 hops | 33,594 |
| 5 hops | 11,441 |
| 6 hops | 32,312 |
Most used dependents
- cheshire » cheshire2,075 usages
- com.amazonaws » aws-java-sdk-s31,790 usages
- org.apache.kafka » kafka1,450 usages
- org.elasticsearch » elasticsearch1,377 usages
- com.amazonaws » aws-java-sdk-core1,268 usages
- com.amazonaws » aws-java-sdk974 usages
- com.jetbrains.intellij.platform » ide-impl753 usages
- org.elasticsearch.client » elasticsearch-rest-high-level-client684 usages
- com.atlassian.jira » jira-core554 usages
- com.jetbrains.intellij.platform » lang-impl536 usages
- org.keycloak » keycloak-core528 usages
- com.amazonaws » aws-java-sdk-dynamodb525 usages
- org.apache.solr » solr-core500 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://repo1.maven.org/maven2
- Webhttps://www.cve.org/CVERecord?id=CVE-2026-68496
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68495.json
- Advisoryhttps://github.com/FasterXML/jackson-dataformats-binary/blob/2.18/release-notes/VERSION-2.x
- Advisoryhttps://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-3v8f-v6vx-fmrm
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-68495
- Fixhttps://github.com/FasterXML/jackson-dataformats-binary/issues/725
- Packagehttps://github.com/FasterXML/jackson-dataformats-binary
