Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-89407

HIGH 7.5EPSS 55%

jackson-core: quadratic backtracking in NumberInput.PATTERN_FLOAT via looksLikeValidNumber() enables ReDoS

Also known as GHSA-p6pp-m3f8-5c89

Mitigation

  • Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.18.11, 2.21.7, 2.22.3 (or later in the same release line).
  • Upgrade tools.jackson.core:jackson-core to one of 3.1.7, 3.2.2 (or later in the same release line).
  • Vendor workaround: Until upgrading, lower StreamReadConstraints.maxStringLength well below its default of 20,000,000 characters so that oversized string tokens are rejected before number coercion, and apply wall-clock timeouts to parse and coercion operations. Because matching cost is quadratic in token length, a tight length bound substantially reduces worst-case cost. These are mitigations, not a complete fix.

Who should check

  • Projects that depend on Maven package com.fasterxml.jackson.core:jackson-core (>= 2.17.0, < 2.18.11)
  • Projects that depend on Maven package tools.jackson.core:jackson-core (>= 3.0.0, < 3.1.7)
  • Anyone running FasterXML jackson-core >= 2.17.0, <= 2.18.10; >= 2.19.0, <= 2.21.6; >= 2.22.0, <= 2.22.2
  • Anyone running FasterXML jackson-core >= 3.0.0, <= 3.1.6; >= 3.2.0, <= 3.2.1

Vulnerability facts

Affected
com.fasterxml.jackson.core:jackson-core >= 2.17.0, < 2.18.11; tools.jackson.core:jackson-core >= 3.0.0, < 3.1.7
Fixed in
2.18.11, 2.21.7, 2.22.3, 3.1.7, 3.2.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.84% chance of exploitation in 30 days (percentile 55, 2026-11-26)
CWE
CWE-1333, CWE-400
Published
Modified

Description

NumberInput.looksLikeValidNumber() in FasterXML jackson-core pre-validates "stringified numbers" with two regular expressions: PATTERN_FLOAT ([+-]?[0-9]*[\.]?[0-9]+([eE][+-]?[0-9]+)?), present since 2.17.0, and PATTERN_FLOAT_TRAILING_DOT, added in 2.17.2. PATTERN_FLOAT places adjacent quantifiers over the same character class -- an optional [0-9]* run, an optional dot, then a required [0-9]+ run -- so input that ultimately fails to match forces Java's backtracking engine to retry every possible split point of the digit run.  Matching cost therefore grows with the square of the input length.  An attacker who can supply JSON that an application deserializes into a numeric target type reaches this method through jackson-databind's default String-to-number coercion (StdDeserializer and NumberDeserializers for BigDecimal, BigInteger, Double and Float).  Because StreamReadConstraints.maxStringLength defaults to 20,000,000 characters, no constraint bounds the input before it reaches the regex.  Testing by the reporter confirmed O(n^2) growth across five consecutive input-size doublings, with a single 160,000-character string consuming roughly 74 seconds in one call; a small number of concurrent requests of ordinary body size can therefore exhaust a server's request-handling thread pool.  The affected method does not exist before 2.17.0, so 2.16.x and earlier releases are not affected.  The fix replaces both regular expressions with a hand-rolled single-pass scan.

Affected and fixed versions

Package / productAffectedFixedSource
Maven com.fasterxml.jackson.core:jackson-core>= 2.17.0, < 2.18.112.18.11, 2.21.7, 2.22.3osv
Maven tools.jackson.core:jackson-core>= 3.0.0, < 3.1.73.1.7, 3.2.2osv
FasterXML jackson-core>= 2.17.0, <= 2.18.10; >= 2.19.0, <= 2.21.6; >= 2.22.0, <= 2.22.2—cvelist
FasterXML jackson-core>= 3.0.0, <= 3.1.6; >= 3.2.0, <= 3.2.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-89407. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89407.md
Affected: com.fasterxml.jackson.core:jackson-core >= 2.17.0, < 2.18.11; tools.jackson.core:jackson-core >= 3.0.0, < 3.1.7
Fixed in: 2.18.11, 2.21.7, 2.22.3, 3.1.7, 3.2.2

Steps:
1. Search this machine and project for com.fasterxml.jackson.core:jackson-core (Maven), tools.jackson.core:jackson-core (Maven), FasterXML jackson-core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-89407 being exploited?

There is no confirmed exploitation: CVE-2026-89407 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-89407?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-89407?

com.fasterxml.jackson.core:jackson-core >= 2.17.0, < 2.18.11; tools.jackson.core:jackson-core >= 3.0.0, < 3.1.7.

Is there a fix for CVE-2026-89407?

Yes. Fixed in 2.18.11, 2.21.7, 2.22.3, 3.1.7, 3.2.2. Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.18.11, 2.21.7, 2.22.3 (or later in the same release line). Upgrade tools.jackson.core:jackson-core to one of 3.1.7, 3.2.2 (or later in the same release line). Vendor workaround: Until upgrading, lower StreamReadConstraints.maxStringLength well below its default of 20,000,000 characters so that oversized string tokens are rejected before number coercion, and apply wall-clock timeouts to parse and coercion operations. Because matching cost is quadratic in token length, a tight length bound substantially reduces worst-case cost. These are mitigations, not a complete fix.

How do I check if I'm affected by CVE-2026-89407?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors