1. Accueil
  2. Vulnérabilités
  3. CVE-2026-68495

CVE-2026-68495

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

Publiée le 1 oct. 2026 · modifiée le 2 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 50/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Fasterxml (5 ligne(s))
Fasterxml
ProduitVersionsCorrigé dansSource
jackson-dataformats-binary de 2.16.0 (inclus) à 2.18.9 (inclus) — CNA (éditeur ou attributeur)
jackson-dataformats-binary de 2.19.0 (inclus) à 2.21.5 (inclus) — CNA (éditeur ou attributeur)
jackson-dataformats-binary de 2.22.0 (inclus) à 2.22.1 (inclus) — CNA (éditeur ou attributeur)
jackson-dataformats-binary de 3.0.0 (inclus) à 3.1.5 (inclus) — CNA (éditeur ou attributeur)
jackson-dataformats-binary de 3.2.0 (inclus) à 3.2.1 (inclus) — CNA (éditeur ou attributeur)

Correctif

Correctifsource officielle

Upgrade to com.fasterxml.jackson.dataformat:jackson-dataformat-cbor 2.18.10, 2.21.6 or 2.22.2, or to tools.jackson.dataformat:jackson-dataformat-cbor 3.1.6 or 3.2.2. The 2.16.x, 2.17.x, 2.19.x, 2.20.x and 3.0.x lines received no fix on their own branch and are no longer maintained upstream.

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

No StreamReadConstraints setting mitigates this: maxNameLength is the control that is not enforced, and maxDocumentLength is disabled by default (-1). Bound request body size ahead of the parser, set StreamReadConstraints.maxDocumentLength explicitly on the CBORFactory, and cap JVM heap so a single document cannot exhaust process memory. Avoid parsing untrusted CBOR input where these limits cannot be applied.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Exploit signalé par les sources

Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1472)
  4. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1486)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:HeroDevs)
Faiblesse
CWE-770 · Autre (CWE-770)

Comment sont obtenues et calculées ces données