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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-1333, CWE-400
- **Aliases:** GHSA-p6pp-m3f8-5c89
- **Published:** 2026-09-22T14:53:20.999Z
- **Modified:** 2026-10-01T15:30:13.452Z

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

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

- Maven `com.fasterxml.jackson.core:jackson-core`: affected \>= 2.17.0, \< 2.18.11; fixed 2.18.11, 2.21.7, 2.22.3 (osv)
- Maven `tools.jackson.core:jackson-core`: affected \>= 3.0.0, \< 3.1.7; fixed 3.1.7, 3.2.2 (osv)
- 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)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-89407>
- patch: <https://github.com/FasterXML/jackson-core/pull/1650>
- patch: <https://github.com/FasterXML/jackson-core/pull/1701>
- patch: <https://github.com/FasterXML/jackson-core/commit/731e794f62623aa0d86ced52490166be903fbb1d>
- patch: <https://github.com/FasterXML/jackson-core/commit/e7acd64cc99bd346704423dc2bfea1ab0a08ddff>
- other: <https://github.com/FasterXML/jackson-core/issues/1649>
- other: <https://github.com/FasterXML/jackson-core>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89407>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p6pp-m3f8-5c89> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-89407> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89407>
