jackson-dataformat-cbor: quadratic-time TagList growth on unbounded stacked tags (CPU/GC DoS, PoC)

State
Published
Severity
7.5 High
Published
Nov 4, 2026
Updated
Nov 10, 2026
Reserved
Oct 6, 2026

Read the record on cve.org

Description

One CBOR-parsing issue in jackson-dataformats-binary's CBOR module: an unbounded run of CBOR tags drives quadratic-time TagList growth (CPU/GC-exhaustion DoS, PoC-proven).

PoC executed against com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.18.2; present in current 2.x and 3.x (tools.jackson.dataformat.cbor) HEAD. Distinct from the Avro and Smile/Protobuf advisories for this repo.

Quadratic CPU/GC DoS from an unbounded chain of CBOR tags (PoC-proven). File: cbor/src/main/java/.../cbor/CBORParser.java (tag handling -> TagList).

CBOR permits a data item to be preceded by any number of semantic tags. The CBOR parser accumulates them in a TagList whose backing array grows by a fixed increment (+8), not by doubling, and re-scans/copies on each growth. An attacker sends a value preceded by a long run of tag bytes; the fixed-increment growth makes accumulating N tags O(N^2) in time (plus GC pressure), with no cap on the number of stacked tags.

PoC (executed, JDK 17): feeding a CBOR stream consisting of a long run of tag bytes (e.g. tag 0xC0+) before a trivial value forces quadratic CPU/GC; parse time grows super-linearly with the tag count, pinning a request thread with no configurable limit.

Impact. Algorithmic-complexity denial of service (CWE-407): a modest input of stacked tags consumes quadratic CPU/GC, pinning a request thread; concurrent requests exhaust the pool.

Fix. Grow TagList by doubling and/or cap the number of stacked tags (StreamReadConstraints-style).

ProductVersions
jackson-dataformat-cbor FasterXML2.15.0 to before 2.18.12 Affected2.18.12 Not Affected2.19.0 to before 2.21.8 Affected2.21.8 Not Affected2.22.0 to before 2.22.4 Affected2.22.4 Not Affected
jackson-dataformat-cbor FasterXML3.0.0 to before 3.1.8 Affected3.1.8 Not Affected3.2.0 to before 3.2.4 Affected3.2.4 Not Affected

Weaknesses

  • CWE-407 Inefficient Algorithmic Complexity

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.