CVE-2026-85228: DJL tensor buffer integer overflow allows OOB read/DoS
AWS disclosed CVE-2026-85228, an integer overflow in the tensor buffer validation logic of the Deep Java Library (DJL), affecting versions 0.13.0 through 0.36.0 on all platforms. A crafted tensor shape can cause the computed byte size to wrap past the 32-bit signed integer range, letting an undersized buffer pass validation and leading to an out-of-bounds read during a later tensor operation.
AI · SECURITY · VULNERABILITY · SECURITY ADVISORY
PUBLISHED SEP 22, 2026 15:48 UTC
WHAT CHANGED
DJL's tensor buffer validation failed to correctly handle shapes whose computed byte size exceeds the 32-bit signed integer range, causing an integer overflow that lets undersized buffers pass validation checks. A subsequent tensor operation then performs an out-of-bounds memory read. The issue is fixed in ai.djl:api version 0.37.0; there is no workaround other than upgrading, though AWS advises only accepting tensor input from trusted sources and not exposing raw-tensor (binary mode) inference endpoints backed by native Java engines to untrusted callers in the interim.
WHY IT MATTERS
A remote, unauthenticated actor supplying a crafted tensor payload could read adjacent process memory or cause a denial of service on systems running affected DJL versions (0.13.0–0.36.0). Administrators running inference services built on DJL, especially those exposing tensor input endpoints to external or untrusted callers, should treat this as requiring prompt patching to avoid information disclosure or service disruption.
WHO IS AFFECTED
- PRODUCTS
- Deep Java Library (DJL)ai.djl:api
- FEATURES
- tensor buffer validationraw-tensor ("binary mode") inference endpoints
- CONFIGURATIONS
- Impacted versions >=0.13.0 AND <=0.36.0
- ENVIRONMENTS
- Deployments using native Java engines for tensor inference
WHAT TO DO
- 01HIGHAUTOMATABLE
Upgrade Deep Java Library (ai.djl:api) to version 0.37.0 or later.
- 02MEDIUM
Ensure any forked or derivative DJL code incorporates the fix from version 0.37.0.
- 03MEDIUM
Until upgraded, only accept tensor input from trusted sources.
- 04MEDIUM
Avoid exposing raw-tensor (binary mode) inference endpoints backed by native Java engines to untrusted callers until patched.
TIMELINE
- ANNOUNCED
- SEP 10, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES, INC.
CVE-2026-85228 - Integer overflow in tensor buffer validation in Deep Java Library
PUBLISHED SEP 10, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.