Loading0%
SUBZER0
LIVE
Alerts

CVE-2026-89425

jackson-core: UTF8DataInputJsonParser._reportInvalidToken() missing maxErrorTokenLength limit -> unbounded StringBuilder growth (DoS)

Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-10-31; check the references for anything newer.

  • Severity: High
  • CVSS 7.5
  • EPSS 0.53%
  • Public exploit
  • P2 · This week

Why P2: this week.

Description

## Status **FULLY REPRODUCED.** A malformed token fed through `createParser(DataInput)` produced a 20,000,109-character exception message from a 20-million-character attacker payload, while the identical payload fed through `createParser(InputStream)` produced a correctly bounded 367-character message. ## Affected Component / Version - **Package:** `com.fasterxml.jackson.core:jackson-core` - **Confirmed against:** `jackson-core-2.20.2` - **Affected file:** `src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java` (`_reportInvalidToken(int, String, String)`, lines ~2763-2780 in the 2.20.2 tree) ## Technical Analysis `UTF8DataInputJsonParser._reportInvalidToken()` builds the offending-token description for its exception message by appending identifier characters one at a time to a bare `StringBuilder`: ```java protected void _reportInvalidToken(int ch, String matchedPart, String msg) throws IOException { StringBuilder sb = new StringBuilder(matchedPart); while (true) { char c = (char) _decodeCharForError(ch); if (!Character.isJavaIdentifierPart(c)) { break; } sb.append(c); ch = _inputData.readUnsignedByte(); } _reportError("Unrecognized token '"+sb.toString()+"': was expecting "+msg); } ``` There is **no check against `ErrorReportConfiguration.getMaxErrorTokenLength()`** (default 256) anywhere in this loop. By contrast, the sibling `UTF8StreamJsonParser` implementation of the same l…

Affected products

  • maven com.fasterxml.jackson.core:jackson-core >= 2.19.0, <= 2.21.6; first patched: 2.21.7
  • maven com.fasterxml.jackson.core:jackson-core >= 2.22.0, <= 2.22.2; first patched: 2.22.3
  • maven com.fasterxml.jackson.core:jackson-core >= 2.8.0, <= 2.18.10; first patched: 2.18.11
  • maven tools.jackson.core:jackson-core >= 3.0.0, <= 3.1.6; first patched: 3.1.7
  • maven tools.jackson.core:jackson-core >= 3.2.0, <= 3.2.2; first patched: 3.2.3

References

Browse more

Maven (Java) packagesWeek 40, 2026 recap

Published 2026-09-23 · sources: GitHub Advisory Database