CVE-2026-18401jackson-core: Number length constraint bypass in non-blocking (async) JSON parser leads…
The non-blocking (asynchronous) JSON parser in jackson-core does not enforce the maxNumberLength constraint defined in StreamReadConstraints (default: 1000 characters). An attacker able to submit JSON to an application that uses the async parser API can supply a number token of arbitrary length, leading to excessive memory allocation and potential CPU exhaustion, resulting in a denial of service. The synchronous parser enforces this limit correctly, so the constraint is applied inconsistently depending on which parsing API the application uses. Root cause: the async parsing path in NonBlockingUtf8JsonParserBase and related classes never invokes the number length validation methods. Number parsing methods such as _finishNumberIntegralPart() accumulate digits into the TextBuffer without any length check, then call _valueComplete() to finalize the token. _valueComplete() does not call resetInt() or resetFloat(), which are the methods in ParserBase where validateIntegerLength() and validateFPLength() are performed. Because that validation step is skipped, maxNumberLength is never enforced on the async code path. Impact: an attacker sending a JSON document containing an arbitrarily long number to an application using the async parser (for example a Spring WebFlux or other reactive application) can cause unbounded allocation in the TextBuffer and an OutOfMemoryError. If the application subsequently calls getBigIntegerValue() or getDecimalValue(), the JVM may additionally be tied up in O(n^2) BigInteger parsing, causing CPU-based denial of service. No privileges or user interaction beyond the ability to submit data for parsing are required. This issue affects com.fasterxml.jackson.core:jackson-core from version 2.15.0 through 2.18.5 and from 2.19.0 through 2.21.0, and tools.jackson.core:jackson-core from 3.0.0 through 3.0.x. Versions prior to 2.15.0 are not affected, because StreamReadConstraints -- which defines the maxNumberLength setting -- was first introduced in jackson-core 2.15.0, so no such constraint exists to be bypassed in earlier releases. Note that GHSA-72hv-8253-57qq records the lower bound of the affected 2.x range as 2.0.0.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jackson-core | Fix pending | UBUNTU-CVE-2026-18401 | |
| Ubuntu 26.04 | jackson-core | Under investigation | UBUNTU-CVE-2026-18401 | |
| Ubuntu 24.04 | jackson-core | Under investigation | UBUNTU-CVE-2026-18401 | |
| Ubuntu 22.04 | jackson-core | Under investigation | UBUNTU-CVE-2026-18401 | |
| Ubuntu 20.04 | jackson-core | Fix pending | UBUNTU-CVE-2026-18401 | |
| Ubuntu 18.04 | jackson-core | Fix pending | UBUNTU-CVE-2026-18401 | |
| Ubuntu 16.04 | jackson-core | Fix pending | UBUNTU-CVE-2026-18401 | |
| Red Hat Enterprise Linux 10 | dogtag-pki | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-acme | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-base | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-ca | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-java | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-kra | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-server | Not affected | ||
| Red Hat Enterprise Linux 10 | idm-pki-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-idm-pki | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-acme | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-base | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-ca | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-est | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-java | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-kra | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-server | Not affected | ||
| Red Hat Enterprise Linux 9 | idm-pki-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-acme | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-base | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-base-java | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-ca | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-kra | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-server | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-symkey | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-idm-pki | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-pki | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-jss | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-jss-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-ldapjdk | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-ldapjdk-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-acme | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-base | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-base-java | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-ca | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-kra | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-server | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-symkey | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-pki-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | idm-tomcatjss | Not affected | ||
| Red Hat Enterprise Linux 8 | jss | Not affected | ||
| Red Hat Enterprise Linux 8 | jss-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | ldapjdk | Not affected | ||
| Red Hat Enterprise Linux 8 | ldapjdk-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-acme | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-base | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-base-java | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-ca | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-core | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-kra | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-server | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-symkey | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-idm-pki | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pki | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | tomcatjss | Not affected | ||
| Maven library | com.fasterxml.jackson.core:jackson-core | Fixed | 2.21.1 | GHSA-72hv-8253-57qq |
| Maven library | tools.jackson.core:jackson-core | Fixed | 3.1.0 | GHSA-72hv-8253-57qq |
What the vendor says
As published in the CVE record by HeroDevs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- FasterXML jackson-core: affected: 2.15.0 to 2.18.5, 2.18.6 not affected, 2.19.0 to before 2.21.1, 2.21.1 not affected; fixed in
2.21.1 - FasterXML jackson-core: affected: 3.0.0 to before 3.1.0, 3.1.0 not affected; fixed in
3.1.0
Vendor advisories:
- https://github.com/FasterXML/jackson-core/security/advisories/GHSA-72hv-8253-57qq (vendor-advisory)
- https://github.com/FasterXML/jackson-core/pull/1555 (patch)
- https://github.com/FasterXML/jackson-core/commit/b0c428e6f993e1b5ece5c1c3cb2523e887cd52cf (patch)
References
- https://github.com/FasterXML/jackson-core/security/advisories/GHSA-72hv-8253-57qq
- https://github.com/FasterXML/jackson-core/pull/1555
- https://github.com/FasterXML/jackson-core/commit/b0c428e6f993e1b5ece5c1c3cb2523e887cd52cf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.