jackson-dataformat-cbor: quadratic-time TagList growth on unbounded stacked tags (CPU/GC DoS, PoC)
- CVE-2026-106554
- EUVD-2026-116970
Description
Show the whole descriptionHide the whole 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).
Text from the CVE.org record.
Recommendation
FasterXML jackson-dataformat-cbor
- If you run 3.2.xupdate to 3.2.4 or laterPatch update: breaking changes are unlikely
- If you run a version from 3.0.0 to before 3.1.8update to 3.1.8 or laterMinor version change: check the release notes
- If you run 2.22.xupdate to 2.22.4 or laterPatch update: breaking changes are unlikely
- If you run a version from 2.19.0 to before 2.21.8update to 2.21.8 or laterMinor version change: check the release notes
- If you run a version from 2.15.0 to before 2.18.12update to 2.18.12 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
FasterXML jackson-dataformat-cbor
Affected versions Fixed in from 3.2.0 to before 3.2.4 3.2.4 from 3.0.0 to before 3.1.8 3.1.8 from 2.22.0 to before 2.22.4 2.22.4 from 2.19.0 to before 2.21.8 2.21.8 from 2.15.0 to before 2.18.12 2.18.12
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.