StreamReadConstraints.maxNameLength (default 50,000 characters) is intended to bound how much memory a single JSON Object property name can consume wh...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10jackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:22.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:24.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:26.04:LTSjackson-core |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
StreamReadConstraints.maxNameLength (default 50,000 characters) is intended to bound how much memory a single JSON Object property name can consume while being parsed, independently of the much larger maxStringLength (default 100,000,000 characters) that bounds ordinary string values. For parsers built over character input — Reader, String or char[] sources, all served by ReaderBasedJsonParser — that bound is not applied while the name is being accumulated. The code path instead re-uses the string-value length check, which is roughly 2000x larger by default. In the character-input slow path, ReaderBasedJsonParser._parseName2() accumulates the name into the TextBuffer and, when a segment fills, calls TextBuffer.finishCurrentSegment(), which validates only maxStringLength. The correct check, StreamReadConstraints.validateNameLength(int), is reached afterwards in CharsToNameCanonicalizer.findSymbol(), once the entire name has been scanned to its closing quote. By that point the full name — up to maxStringLength characters — has already been buffered in memory. A remote attacker who can have a single sufficiently long JSON Object property name parsed through this path can force allocation on the order of 100,000,000 characters (approximately 200 MB, with segment bookkeeping pushing real peak usage higher) before any StreamConstraintsException is thrown, instead of the approximately 50,000-character (about 100 KB) bound the API promises. Repeating this across concurrent requests c…
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com
- report github.com