GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bundled netty 4.1.135.Final has two unfixed CVEs; 4.1.136+ breaks the HTTP layer · Issue #156362 · elastic/elasticsearch

Bundled netty 4.1.135.Final has two unfixed CVEs; 4.1.136+ breaks the HTTP layer #156362

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Bundled netty 4.1.135.Final has two unfixed CVEs; 4.1.136+ breaks the HTTP layer#156362
Copy link
Labels
needs:triageRequires assignment of a team area label

Description

@haha1903
haha1903
opened on Aug 11, 2026
Issue body actions

Summary

Elasticsearch pins netty = 4.1.135.Final on all active branches (main 9.6.0, 9.5, 9.4, 9.3). That version is affected by two CVEs fixed in netty 4.1.136.Final:

  • CVE-2026-55833: SPDY header decoding keeps inflating zlib-compressed header blocks after maxHeaderSize is exceeded (CVSS 3.1: 7.5, C:N/I:N/A:H)
  • CVE-2026-59898: WebSocket upgrade can be forced via the lax V07/V08 handshaker (CVSS 3.1: 7.5, CVSS 4.0: 6.3)

Upgrading is not straightforward: netty 4.1.136 changed FlowControlHandler auto-read semantics (netty#16912 "FlowControlHandler: Fix autoRead behavior" and netty#16983 "respect auto-read when toggled while dequeueing"), which conflicts with the HTTP pipeline flow control introduced in #127817.

What we observed

We build a CVE-patched Elasticsearch image by replacing vulnerable jars in the official image. When netty was bumped from 4.1.135 to 4.1.136 on an Elasticsearch 9.4.x image, the HTTP layer stopped working:

  • Inbound connections are accepted but never read
  • They accumulate in CLOSE_WAIT until the HTTP port is effectively dead
  • The transport layer stays healthy, so the cluster reports green while the REST API is unreachable

Reverting netty to the bundled 4.1.135 restored normal operation. netty 4.1.137.Final does not help: its changelog contains no revert or adjustment of the 4.1.136 FlowControlHandler change.

Questions

  1. Is the incompatibility between netty 4.1.136 FlowControlHandler and the Elasticsearch HTTP pipeline already known?
  2. Is there a plan or timeline to move to a netty release that carries these CVE fixes?
  3. If the netty change is considered a regression on netty's side, has that been raised upstream with the netty project?

We are currently pinning netty to the bundled 4.1.135 and tracking these CVEs as an accepted risk, since the vulnerable codecs (SPDY, WebSocket handshakers) are not loaded by Elasticsearch. A supported path to a fixed netty would let us drop that exception.

Environment

  • Elasticsearch 9.4.4 (official image, jars CVE-patched downstream)
  • Bundled netty: 4.1.135.Final

Activity

  1. elasticsearchmachine
    added
    needs:triageRequires assignment of a team area label
    on Aug 11, 2026
  2. haha1903 commented on Aug 11, 2026

    @haha1903
    haha1903
    on Aug 11, 2026
    Author
    More actions

    Additional upstream context: this is not an isolated report, and the netty side has an open dispute about the change.

    • FlowControlHandler must provide an ensured message for each read request netty/netty#17050 (open, 2026-07-03): "FlowControlHandler must provide an ensured message for each read request". Reports that FlowControlHandler: Suppress duplicate channelReadComplete after draining queue (#15053) netty/netty#16837 and FlowControlHandler: respect auto-read when toggled while dequeueing netty/netty#16949 cause channelReadComplete to fire before the requested message is delivered, breaking the documented contract that FlowControlHandler "ensures that only one message per read() is sent downstream".
    • FlowControlHandler must comply with its fundamental goal (ensured message for each read request) - behaviour broken in 4.2.15.Final (#17050) netty/netty#17046 (open, fixes FlowControlHandler must provide an ensured message for each read request netty/netty#17050): proposed fix, restoring read-complete so it is triggered only after all requested messages have been propagated downstream.

    Two things from that discussion are relevant here:

    1. A netty maintainer's position is that one-message-per-read was never a guarantee: "the only guarantee we really give is that if there is no more data that will be read without a read call we will call channelReadComplete(...). If one read triggers multiple channelReadComplete or not is not really [guaranteed]". So FlowControlHandler must comply with its fundamental goal (ensured message for each read request) - behaviour broken in 4.2.15.Final (#17050) netty/netty#17046 may not be merged, and the discussion has been idle since 2026-07-06.
    2. It was characterised as Hyrum's law: a bug fix from netty's perspective, a breaking change for downstream consumers.

    The workaround suggested in that thread is to copy the previous FlowControlHandler implementation into the consuming codebase. That is not practical for us, since we consume Elasticsearch as a published image and only replace jars.

    Given the upstream disagreement, it would be useful to know whether Elasticsearch considers the 4.1.136 behaviour a netty regression to be resolved upstream, or something the Elasticsearch HTTP pipeline should adapt to.

  3. DaveCTurner commented on Aug 11, 2026

    @DaveCTurner
    DaveCTurner
    on Aug 11, 2026
    Member
    More actions

    Thank you for your report.

    Elastic's security reporting guidelines are available at https://www.elastic.co/community/security. Per those guidelines, all reports of potential security issues or vulnerabilities should be sent via email to [email protected]

    We are unable to discuss potential issues of this nature here. Please send your report to the email address above, where it can be appropriately handled.

    We build a CVE-patched Elasticsearch image by replacing vulnerable jars in the official image.

    Just to clarify that running an unofficial and untested build exposes you to risks of security bugs which may be more severe than the ones you think you are fixing with such patching. We strongly recommend you do not do this.

  4. DaveCTurner
    closed this as not plannedon Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs:triageRequires assignment of a team area label

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.