Skip to content

Fail earlier on coercions from "too big" BigInteger into fixed-size types (int, long, short) #488

@cowtowncoder

Description

@cowtowncoder

(note: offshoot of FasterXML/jackson-databind#2157)

There is a potential Denial-of-Service attack vector in which attacker may include long BigIntegers, with size like 1 million digits (which is still feasible to send), targeted at processing that expects one of Java's fixed-length "small" integer types (int, long most commonly), and cause asymmetrically high processing load. This because JDK's conversion from BigInteger to these types is surprisingly slow; and because Jackson tries to retain accuracy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions