CVE-2026-68498

jackson-core: Delayed maxNameLength enforcement for char-backed input (ReaderBasedJsonParser) allows memory-exhaustion denial of service

7.5 high EPSS 0.66%

Published 16 Oct 2026 Updated 20 Oct 2026 CNA: HeroDevs

Check your servers for CVE-2026-68498

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-68498 affects jackson-core, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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 can exhaust the heap and crash the process. No authentication or user interaction is required. Because StreamReadConstraints.maxDocumentLength is disabled by default (-1), nothing else bounds the token first, so the issue is exploitable under default configuration.

Byte-input parsers are not affected: UTF8StreamJsonParser, UTF8DataInputJsonParser and the non-blocking (async) parsers re-validate maxNameLength on every growth of the name-decode buffer via ParserBase._growNameDecodeBuffer(), rejecting an oversized name after allocating only tens of kilobytes. Applications are exposed when untrusted JSON is parsed from a String, Reader or char[] — for example an HTTP request body already read into a String — rather than from raw UTF-8 bytes.

This issue affects com.fasterxml.jackson.core:jackson-core from 2.16.0 and tools.jackson.core:jackson-core from 3.0.0. Releases before 2.16.0 are not affected, because StreamReadConstraints.maxNameLength was first introduced in jackson-core 2.16.0.

Severity (CVSS)

7.5 high CVSS 3.1 from HeroDevs (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.66%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 53.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
partial: limited control or limited data

Weakness

  • CWE-400 Uncontrolled Resource Consumption

Affected products

As the CNA lists them.

ProductVersions
jackson-core
package com.fasterxml.jackson.core:jackson-core
affected from 2.16.0, before 2.18.10
unaffected 2.18.10
affected from 2.19.0, before 2.21.6
unaffected 2.21.6
affected from 2.22.0, before 2.22.2
unaffected 2.22.2
Other versions: unaffected
jackson-core
package tools.jackson.core:jackson-core
affected from 3.0.0, before 3.1.6
unaffected 3.1.6
affected from 3.2.0, before 3.2.2
unaffected 3.2.2
Other versions: unaffected

Is my server affected?

Find the installed version of jackson-core and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i jackson-core
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-68498 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-68498

RHEL, Rocky, Alma, Fedora

rpm -q jackson-core
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-68498

Alpine

apk list --installed | grep -i jackson-core

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-68498
trivy image --scanners vuln IMAGE | grep CVE-2026-68498

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Source: the record CVE-2026-68498 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.