Skip to main content
Menu
Advisories

Micronaut HTTP clients buffer responses beyond max-content-length and never time out stalled bodies

GHSA-J3JR-9QW4-M252Published Updated GitHub

Description

The Netty client appends inflated content to a buffered response without counting it until the state exits, so a gzip bomb exceeds max-content-length, and after the limit is exceeded it keeps reading and inflating; on 5.2.x SseSplitter searches for newlines quadratically. The JDK client buffers responses with BodyHandlers.ofByteArray without applying max-content-length, and its read timeout covers only the headers, so a stalled body is never timed out. A malicious upstream can exhaust client memory or CPU, or hold client threads indefinitely. The fix is to count decompressed bytes as they are produced, stop reading once the limit is hit, use linear line splitting, and apply limits and a body read timeout in the JDK client.

Affected

Affected versions: 4.7.0 to 5.2.16 for the Netty client members (Http1ResponseHandler, SseSplitter); 4.0.0 to 5.2.16 for the JDK client members. Latest affected release: 5.2.16.

Findings

  • ANT-2026-H5BZIK2T
  • ANT-2026-HWM5BSP8
  • ANT-2026-X3YOV5XM
  • ANT-2026-SW9I6938
  • ANT-2026-SX7T9KV3

Affected versions

References

GitHub · micronaut-projects/micronaut-core