{"id":"CVE-2026-104895","summary":"jackson-dataformat-smile: unbounded eager byte[] allocation for raw binary in the async parser allows OutOfMemoryError denial of service","details":"The asynchronous Smile parser (NonBlockingByteArrayParser) uses a raw-binary length prefix taken from untrusted input to allocate a byte[] before the body is read, with no upper bound and no overflow check. On the raw-binary marker 0xFD, _decodeVInt() computes (value \u003c\u003c 6) + (i & 0x3F) without the (value \u003e\u003e\u003e 25) != 0 overflow guard present in the blocking SmileParser._readUnsignedVInt, and _startRawBinary then allocates the declared length immediately.\n\n\n\nA Smile feed of roughly ten bytes can therefore force an eager allocation of approximately 2 GB, producing an OutOfMemoryError on reactive or asynchronous Smile endpoints. A VInt crafted to overflow int yields a negative length and a NegativeArraySizeException, a RuntimeException that is not a JacksonException and so escapes the parser contract. Either outcome crashes the request or processing thread.\n\n\n\nThis is the same class of issue as CVE-2020-28491 in the CBOR parser of this library, which was fixed with a LONGEST_NON_CHUNKED_BINARY guard; the asynchronous Smile parser never received the equivalent guard. No privileges or user interaction beyond the ability to submit data for parsing are required.","aliases":["GHSA-h3c2-2m49-r49w"],"modified":"2026-11-05T21:16:22.572604479Z","published":"2026-10-28T00:01:44.496Z","database_specific":{"cwe_ids":["CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104895.json","cna_assigner":"HeroDevs"},"references":[{"type":"WEB","url":"https://repo.maven.apache.org/maven2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104895.json"},{"type":"ADVISORY","url":"https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-h3c2-2m49-r49w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104895"},{"type":"PACKAGE","url":"https://github.com/FasterXML/jackson-dataformats-binary"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fasterxml/jackson-dataformats-binary","events":[{"introduced":"bc46c4ac1b0e02679c2cbf390beab12bc0aa2e0e"},{"fixed":"47c8319ae6a153c69cf7397bed173fd96bd0aae9"},{"introduced":"e4b9f213a3948dfc239ac81880235726a926c8ea"},{"fixed":"bcc185d3ad44b4f9bba50318f3244d7e546e0c97"},{"introduced":"2071f427e8d4f739f154aca6e1edc09ccff6f2ce"},{"fixed":"a94d08531c6c04b8e0f9fcc8d96a5cbf1237cff1"},{"introduced":"eeabb9be0575ed09781b6c08af0fadc6c853ffcd"},{"fixed":"c8ff850488e7ca8251cdd968be2de1abe3383ec2"},{"introduced":"a975b216e5f93d306399fb39079ff25875a9620e"},{"fixed":"f88b62de0b64b81ee427d74a2336e52aa940abd1"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.9.0"},{"fixed":"2.18.12"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"strategy":"StandardRange","range":[{"introduced":"2.19.0"},{"fixed":"2.21.8"}],"source":"AFFECTED_FIELD"},{"strategy":"StandardRange","range":[{"introduced":"2.22.0"},{"fixed":"2.22.4"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"3.0.0"},{"fixed":"3.1.8"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"3.2.0"},{"fixed":"3.2.4"}]}]}}],"versions":["jackson-dataformats-binary-3.2.3","jackson-dataformats-binary-3.1.7","jackson-dataformats-binary-2.22.3","jackson-dataformats-binary-2.21.7","jackson-dataformats-binary-2.18.11","jackson-dataformats-binary-2.22.2","jackson-dataformats-binary-2.18.10","jackson-dataformats-binary-2.21.6","jackson-dataformats-binary-3.2.2","jackson-dataformats-binary-3.1.6","jackson-dataformats-binary-3.2.1","jackson-dataformats-binary-3.1.5","jackson-dataformats-binary-2.18.9","jackson-dataformats-binary-2.22.1","jackson-dataformats-binary-2.21.5","jackson-dataformats-binary-3.2.0","jackson-dataformats-binary-2.22.0","jackson-dataformats-binary-3.1.4","jackson-dataformats-binary-2.21.4","jackson-dataformats-binary-2.18.8","jackson-dataformats-binary-3.1.3","jackson-dataformats-binary-2.21.3","jackson-dataformats-binary-2.18.7","jackson-dataformats-binary-3.1.2","jackson-dataformats-binary-3.1.1","jackson-dataformats-binary-2.21.2","jackson-dataformats-binary-3.1.0","jackson-dataformats-binary-2.21.1","jackson-dataformats-binary-2.18.6","jackson-dataformats-binary-3.1.0-rc1","jackson-dataformats-binary-2.21.0","jackson-dataformats-binary-2.18.5","jackson-dataformats-binary-3.0.1","jackson-dataformats-binary-3.0.0","jackson-dataformats-binary-2.20.0","jackson-dataformats-binary-2.20.0-rc1","jackson-dataformats-binary-2.18.4","jackson-dataformats-binary-2.19.0","jackson-dataformats-binary-2.18.3","jackson-dataformats-binary-2.18.2","jackson-dataformats-binary-2.18.1","jackson-dataformats-binary-2.18.0","jackson-dataformats-binary-2.18.0-rc1","jackson-dataformats-binary-2.17.0","jackson-dataformats-binary-2.17.0-rc1","jackson-dataformats-binary-2.16.0","jackson-dataformats-binary-2.16.0-rc1","jackson-dataformats-binary-2.15.0","jackson-dataformats-binary-2.15.0-rc3","jackson-dataformats-binary-2.15.0-rc2","jackson-dataformats-binary-2.15.0-rc1","jackson-dataformats-binary-2.14.1","jackson-dataformats-binary-2.14.0","jackson-dataformats-binary-2.14.0-rc3","jackson-dataformats-binary-2.14.0-rc2","jackson-dataformats-binary-2.14.0-rc1","jackson-dataformats-binary-2.13.0","jackson-dataformats-binary-2.13.0-rc2","jackson-dataformats-binary-2.13.0-rc1","jackson-dataformats-binary-2.12.1","jackson-dataformats-binary-2.12.0","jackson-dataformats-binary-2.12.0-rc2","jackson-dataformats-binary-2.12.0-rc1","jackson-dataformats-binary-2.11.0","jackson-dataformats-binary-2.11.0.rc1","jackson-dataformats-binary-2.10.0","jackson-dataformats-binary-2.10.0.pr3","jackson-dataformats-binary-2.10.0.pr2","jackson-dataformats-binary-2.10.0.pr1","jackson-dataformats-binary-2.9.6","jackson-dataformats-binary-2.9.5","jackson-dataformats-binary-2.9.4","jackson-dataformats-binary-2.9.3","jackson-dataformats-binary-2.9.2","jackson-dataformats-binary-2.9.1","jackson-dataformats-binary-2.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104895.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}