{"id":"CVE-2026-104895","state":"PUBLISHED","title":"jackson-dataformat-smile: unbounded eager byte[] allocation for raw binary in the async parser allows OutOfMemoryError denial of service","description":"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 << 6) + (i & 0x3F) without the (value >>> 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.","publishedAt":"2026-10-28T00:01:44.496Z","updatedAt":"2026-10-28T00:01:44.496Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"HeroDevs"},"assigner":"HeroDevs","products":["FasterXML jackson-dataformat-smile"],"affected":[{"vendor":"FasterXML","product":"jackson-dataformat-smile","packageName":"com.fasterxml.jackson.dataformat:jackson-dataformat-smile","defaultStatus":"unaffected","versions":[{"version":"2.9.0","status":"affected","lessThan":"2.18.12","versionType":"maven"},{"version":"2.18.12","status":"unaffected","versionType":"maven"},{"version":"2.19.0","status":"affected","lessThan":"2.21.8","versionType":"maven"},{"version":"2.21.8","status":"unaffected","versionType":"maven"},{"version":"2.22.0","status":"affected","lessThan":"2.22.4","versionType":"maven"},{"version":"2.22.4","status":"unaffected","versionType":"maven"}],"collectionURL":"https://repo.maven.apache.org/maven2","repo":"https://github.com/FasterXML/jackson-dataformats-binary"},{"vendor":"FasterXML","product":"jackson-dataformat-smile","packageName":"tools.jackson.dataformat:jackson-dataformat-smile","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"3.1.8","versionType":"maven"},{"version":"3.1.8","status":"unaffected","versionType":"maven"},{"version":"3.2.0","status":"affected","lessThan":"3.2.4","versionType":"maven"},{"version":"3.2.4","status":"unaffected","versionType":"maven"}],"collectionURL":"https://repo.maven.apache.org/maven2","repo":"https://github.com/FasterXML/jackson-dataformats-binary"}],"references":["https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-h3c2-2m49-r49w"],"weaknesses":["CWE-789"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/104xxx/CVE-2026-104895.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-104895","state":"PUBLISHED","datePublished":"2026-10-28T00:01:44.496Z","dateUpdated":"2026-10-28T00:01:44.496Z","assignerShortName":"HeroDevs","assignerOrgId":"36c7be3b-2937-45df-85ea-ca7133ea542c","dateReserved":"2026-10-02T15:02:48.774Z"},"containers":{"cna":{"title":"jackson-dataformat-smile: unbounded eager byte[] allocation for raw binary in the async parser allows OutOfMemoryError denial of service","descriptions":[{"lang":"en","value":"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 << 6) + (i & 0x3F) without the (value >>> 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."}],"affected":[{"vendor":"FasterXML","product":"jackson-dataformat-smile","packageName":"com.fasterxml.jackson.dataformat:jackson-dataformat-smile","defaultStatus":"unaffected","versions":[{"version":"2.9.0","status":"affected","lessThan":"2.18.12","versionType":"maven"},{"version":"2.18.12","status":"unaffected","versionType":"maven"},{"version":"2.19.0","status":"affected","lessThan":"2.21.8","versionType":"maven"},{"version":"2.21.8","status":"unaffected","versionType":"maven"},{"version":"2.22.0","status":"affected","lessThan":"2.22.4","versionType":"maven"},{"version":"2.22.4","status":"unaffected","versionType":"maven"}],"collectionURL":"https://repo.maven.apache.org/maven2","repo":"https://github.com/FasterXML/jackson-dataformats-binary"},{"vendor":"FasterXML","product":"jackson-dataformat-smile","packageName":"tools.jackson.dataformat:jackson-dataformat-smile","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"3.1.8","versionType":"maven"},{"version":"3.1.8","status":"unaffected","versionType":"maven"},{"version":"3.2.0","status":"affected","lessThan":"3.2.4","versionType":"maven"},{"version":"3.2.4","status":"unaffected","versionType":"maven"}],"collectionURL":"https://repo.maven.apache.org/maven2","repo":"https://github.com/FasterXML/jackson-dataformats-binary"}],"references":[{"url":"https://github.com/FasterXML/jackson-dataformats-binary/security/advisories/GHSA-h3c2-2m49-r49w","name":"GHSA-h3c2-2m49-r49w","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":7.5,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-789","lang":"en","description":"CWE-789 Memory Allocation with Excessive Size Value","type":"CWE"}]}],"providerMetadata":{"shortName":"HeroDevs","orgId":"36c7be3b-2937-45df-85ea-ca7133ea542c","dateUpdated":"2026-10-28T00:01:44.496Z"},"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"tags":["x_open-source"],"timeline":[{"time":"2026-10-20T22:47:00.000Z","lang":"en","value":"GHSA-h3c2-2m49-r49w published by the maintainer in FasterXML/jackson-dataformats-binary"}],"credits":[{"lang":"en","value":"apvxlab (AppViewX security research)","type":"reporter"},{"lang":"en","value":"Michael-JRead","type":"reporter"},{"lang":"en","value":"cowtowncoder (Tatu Saloranta)","type":"coordinator"}],"source":{"advisory":"GHSA-h3c2-2m49-r49w","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.5.0"}}}}}