{"id":"CVE-2026-89407","published":"2026-09-22T15:17:21.053","lastModified":"2026-09-22T20:00:03.713","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. \n\n\n\nMatching cost therefore grows with the square of the input length. \n\n\n\nAn 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). \n\n\n\nBecause StreamReadConstraints.maxStringLength defaults to 20,000,000 characters, no constraint bounds the input before it reaches the regex. \n\n\n\nTesting 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. \n\n\n\nThe affected method does not exist before 2.17.0, so 2.16.x and earlier releases are not affected. \n\n\n\nThe fix replaces both regular expressions with a hand-rolled single-pass scan.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwes":["CWE-400","CWE-1333"],"vendors":[],"products":[],"references":[{"url":"https://github.com/FasterXML/jackson-core/issues/1649","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/pull/1650","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/pull/1701","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89","tags":[]}],"exploitRefs":[{"url":"https://github.com/FasterXML/jackson-core/issues/1649","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/pull/1650","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/pull/1701","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89","tags":[]},{"url":"https://github.com/FasterXML/jackson-core/security/advisories/GHSA-p6pp-m3f8-5c89","tags":[]}],"hasPoc":true,"ai":{"summary":"The FasterXML jackson-core library has a vulnerability in its NumberInput.looksLikeValidNumber() method that causes quadratic time complexity when processing stringified numbers. This allows attackers to perform a denial-of-service attack by submitting large numeric strings that trigger expensive regex backtracking, potentially exhausting server resources.","exploitability":"Exploitation is relatively straightforward for applications using jackson-core 2.17.0 or later with deserialization of string inputs into numeric types, requiring only a specially crafted long numeric string to trigger the quadratic regex behavior.","blast_radius":"The impact could be significant across web applications that deserialize JSON inputs into numeric fields, potentially leading to server resource exhaustion and denial of service for legitimate users.","remediation":"Upgrade to jackson-core 2.17.3 or later to receive the fix for the quadratic regex backtracking vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["denial-of-service","json","deserialization","regex"],"model":"garnet-coder","analyzedAt":"2026-10-18T16:14:11.643Z"}}