jackson-dataformats-binary: Smile parser does not enforce StreamReadConstraints.maxNameLength, enabling memory-exhaustion denial of service (FasterXML jackson-dataformats-binary)

CVE-2026-68496
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.56 % · percentile 48 ()
State
PUBLISHED
Published
Updated
Assigner
HeroDevs
Affected products
FasterXML · jackson-dataformats-binary
NVD status
Awaiting Analysis

Description

The Smile 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. SmileParser._handleLongFieldName() grows its internal name buffer through an unconstrained _growArrayTo() call and performs no length validation. An attacker who can have a Smile 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 SmileFactory parsing, directly or through an ObjectMapper configured with the Smile 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 CBOR parser defect in the same vendor advisory, GHSA-3v8f-v6vx-fmrm, which covers both binary formats. The Smile parser defect (jackson-dataformats-binary issue #726) is CVE-2026-68496; the CBOR parser defect (issue #725) is assigned CVE-2026-68495.

Weaknesses (CWE)

  • CWE-770 — Allocation of Resources Without Limits or Throttling
  • CWE-400 — Uncontrolled Resource Consumption

Credits

  • tinyb0y finder

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHeroDevs
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 36c7be3b-2937-45df-85ea-ca7133ea542c (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
FasterXML · jackson-dataformats-binary
com.fasterxml.jackson.dataformat:jackson-dataformat-smile
affected : ≥ 2.16.0 ≤ 2.18.9
affected : ≥ 2.19.0 ≤ 2.21.5
affected : ≥ 2.22.0 ≤ 2.22.1
Other versions : unaffected
FasterXML · jackson-dataformats-binary
tools.jackson.dataformat:jackson-dataformat-smile
affected : ≥ 3.0.0 ≤ 3.1.5
affected : ≥ 3.2.0 ≤ 3.2.1
Other versions : unaffected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD