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 — Merge changes from forks (#17213) by normanmaurer · Pull Request #17217 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Aug 5, 2026

Copy link
Copy Markdown
Member

CORS: Don't override vary header if it already
exists

Motivation:

Netty's CorsHandler silently overwrites existing Vary headers, enabling
cache poisoning and sensitive information disclosure.

Modifications:

  • Only set vary header if it not already exists
  • Add unit test

Result:

No more cache poisoning possible


Encoding-side validation of MQTT
fields

Motivation:
The MqttEncoder should not produce malformed messages if client id,
topics, or usernames contain illegal characters.

Modification:
Add validation of client identifier, will topic, and username to the
encoding path of CONNECT messages, and also to the topic name when
encoding PUBLISH messages.

Result:
The encoder will now throw an exception if any of these fields contain a
NUL byte.


Bound SCTP fragmented message
buffering


Correctly handle ClientHello with a handshake header split across
TLS…

… records

Motivation:

The handshake header (HandshakeType + 3-byte length = 4 bytes) may be
delivered across multiple TLS records. SslClientHelloHandler assumed
these
4 bytes were always contained in the first record and read them directly
from it, which is incorrect when the header spans records.

Modification:

  • Read the handshake header directly from the record only when the full
    4 bytes are contained in it.
  • Otherwise aggregate the record payloads into handshakeBuffer and read
    the
    handshakeType and handshakeLength from the buffer once at least 4 bytes
    are available.
  • Aggregate the handshake header together with the body and slice past
    the
    4-byte header once the full ClientHello has been buffered.
  • Add SniHandlerTest cases for fragment sizes 1-4.

Result:

ClientHello messages whose handshake header is fragmented across
multiple
TLS records are parsed correctly.


Harden the SOCKS4/5 input validation at encoding
time

Motivation:
SOCKS4 is a delimiter-based protocol, and does not support NUL bytes in
string or byte-sequence fields.
SOCKS5 is a Tag-Length-Value protocol, and does not support lengths
greater than 255.

Modification:
Add validations for NUL bytes and lengths for SOCKS4 and 5,
respectively, and ensure both client- and server-side encoders behave
correctly.
Add tests to verify the correct handling of boundary conditions.

Result:
Correct delimiter and length handling in the SOCKS4/5 encoders, even
when integrators use custom implementations of the message types.


Do not re-aggregate the ClientHello on every received TLS
record


Validate trust manager
configuration

Motivation:

Certain trust manager configurations were not being validated
against the configured endpoint identification algorithm.

Modification:

Add a check that fails fast when the configured trust manager
does not support the required verification mode.

Result:

Misconfigured trust manager setups are now rejected explicitly
instead of failing silently.


Co-authored-by: Norman Maurer [email protected]
Co-authored-by: yawkat [email protected]
Co-authored-by: multicode [email protected]
Co-authored-by: Violeta Georgieva [email protected]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
chrisvest and others added 10 commits August 5, 2026 08:04
@chrisvest @normanmaurer
@yawkat @multicode-agent @violetagg
Merge changes from forks (#17213)
cc78c94
[CORS: Don't override vary header if it already
exists](1a896eb)
Motivation:

Netty's CorsHandler silently overwrites existing Vary headers, enabling
cache poisoning and sensitive information disclosure.

Modifications:

- Only set vary header if it not already exists
- Add unit test

Result:

No more cache poisoning possible

---

[Encoding-side validation of MQTT
fields](9975553)
Motivation:
The MqttEncoder should not produce malformed messages if client id,
topics, or usernames contain illegal characters.

Modification:
Add validation of client identifier, will topic, and username to the
encoding path of CONNECT messages, and also to the topic name when
encoding PUBLISH messages.

Result:
The encoder will now throw an exception if any of these fields contain a
NUL byte.

---

[Bound SCTP fragmented message
buffering](c07b97c)

---

[Correctly handle ClientHello with a handshake header split across
TLS…](a8f53f2)
… records

Motivation:

The handshake header (HandshakeType + 3-byte length = 4 bytes) may be
delivered across multiple TLS records. SslClientHelloHandler assumed
these
4 bytes were always contained in the first record and read them directly
from it, which is incorrect when the header spans records.

Modification:

- Read the handshake header directly from the record only when the full
4 bytes are contained in it.
- Otherwise aggregate the record payloads into handshakeBuffer and read
the
handshakeType and handshakeLength from the buffer once at least 4 bytes
are available.
- Aggregate the handshake header together with the body and slice past
the
4-byte header once the full ClientHello has been buffered.
- Add SniHandlerTest cases for fragment sizes 1-4.

Result:

ClientHello messages whose handshake header is fragmented across
multiple
TLS records are parsed correctly.

---

[Harden the SOCKS4/5 input validation at encoding
time](4625406)
Motivation:
SOCKS4 is a delimiter-based protocol, and does not support NUL bytes in
string or byte-sequence fields.
SOCKS5 is a Tag-Length-Value protocol, and does not support lengths
greater than 255.

Modification:
Add validations for NUL bytes and lengths for SOCKS4 and 5,
respectively, and ensure both client- and server-side encoders behave
correctly.
Add tests to verify the correct handling of boundary conditions.

Result:
Correct delimiter and length handling in the SOCKS4/5 encoders, even
when integrators use custom implementations of the message types.

---

[Do not re-aggregate the ClientHello on every received TLS
record](bb74154)

---

[Validate trust manager
configuration](5f1888e)
Motivation:

Certain trust manager configurations were not being validated
against the configured endpoint identification algorithm.

Modification:

Add a check that fails fast when the configured trust manager
does not support the required verification mode.

Result:

Misconfigured trust manager setups are now rejected explicitly
instead of failing silently.

---------

Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: yawkat <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Violeta Georgieva <[email protected]>
@normanmaurer
fix compile error
312383b
@normanmaurer
Fix
1af41e3
@normanmaurer
Fix
3493fbf
@normanmaurer
Fix
c532e1d
@normanmaurer
more fixes
e0978d6
@normanmaurer
Fixes
a61d76d
@normanmaurer
Fixes
edb6575
@normanmaurer
Fixes
23793cf
@normanmaurer
Fix
0dc2bfb
@chrisvest chrisvest added this to the 4.1.137.Final milestone Aug 5, 2026
@chrisvest chrisvest mentioned this pull request Aug 5, 2026
Merge changes from forks #17213
Merged
@chrisvest
Merge branch '4.1' into merge41
7197d13
@normanmaurer
normanmaurer merged commit 9e05192 into 4.1 Aug 6, 2026
17 of 18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer deleted the merge41 branch August 6, 2026 07:29
@LEEKIYOON-SEC LEEKIYOON-SEC mentioned this pull request Aug 19, 2026
[Argus] CVE-2026-75595: Netty: 분할된 TLS ClientHello를 통한 SNI 라우팅 우회 및 기본 SslContext 폴백 LEEKIYOON-SEC/Argus-DEV#4430
Open
@github-actions github-actions Bot mentioned this pull request Aug 20, 2026
2026-08-20 (Critical: 86, High: 121) 0d000721999/cve-daily-brief#59
Open
This was referenced Aug 30, 2026
CVE-2026-75595: io.netty:netty-handler:jar:4.1.136.Final:runtime exasol/small-json-files-test-fixture#68
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:runtime exasol/cloudwatch-adapter#142
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:compile exasol/azure-data-lake-storage-gen2-document-files-virtual-schema#161
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.1.136.Final:runtime exasol/dynamodb-virtual-schema#232
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:provided exasol/spark-connector-common-java#117
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:compile exasol/azure-blob-storage-document-files-virtual-schema#149
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:compile exasol/cloud-storage-extension#462
Closed
CVE-2026-75595: io.netty:netty-handler:jar:4.2.16.Final:test exasol/kafka-connector-extension#228
Closed
Copilot AI mentioned this pull request Sep 11, 2026
Pin io.netty:netty-handler to 4.2.17.Final to remediate SNI fallback bypass navikt/aap-kelvin-komponenter#544
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Sep 18, 2026
fix(deps): close the amqp-client credential-leak advisory left open on dev OpenResilienceInitiative/ORISO-UserService#1190
Merged
Copilot AI mentioned this pull request Sep 24, 2026
Bump Neo4j Java Driver to remove vulnerable Netty 4.2.15 guardian/giant#861
Merged
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
@normanmaurer @chrisvest
@yawkat @multicode-agent @violetagg @lltopk
Merge changes from forks (netty#17213) (netty#17217)
4dc90a4
[CORS: Don't override vary header if it already

exists](netty@1a896eb)
Motivation:

Netty's CorsHandler silently overwrites existing Vary headers, enabling
cache poisoning and sensitive information disclosure.

Modifications:

- Only set vary header if it not already exists
- Add unit test

Result:

No more cache poisoning possible

---

[Encoding-side validation of MQTT

fields](netty@9975553)
Motivation:
The MqttEncoder should not produce malformed messages if client id,
topics, or usernames contain illegal characters.

Modification:
Add validation of client identifier, will topic, and username to the
encoding path of CONNECT messages, and also to the topic name when
encoding PUBLISH messages.

Result:
The encoder will now throw an exception if any of these fields contain a
NUL byte.

---

[Bound SCTP fragmented message

buffering](netty@c07b97c)

---

[Correctly handle ClientHello with a handshake header split across

TLS…](netty@a8f53f2)
… records

Motivation:

The handshake header (HandshakeType + 3-byte length = 4 bytes) may be
delivered across multiple TLS records. SslClientHelloHandler assumed
these
4 bytes were always contained in the first record and read them directly
from it, which is incorrect when the header spans records.

Modification:

- Read the handshake header directly from the record only when the full
4 bytes are contained in it.
- Otherwise aggregate the record payloads into handshakeBuffer and read
the
handshakeType and handshakeLength from the buffer once at least 4 bytes
are available.
- Aggregate the handshake header together with the body and slice past
the
4-byte header once the full ClientHello has been buffered.
- Add SniHandlerTest cases for fragment sizes 1-4.

Result:

ClientHello messages whose handshake header is fragmented across
multiple
TLS records are parsed correctly.

---

[Harden the SOCKS4/5 input validation at encoding

time](netty@4625406)
Motivation:
SOCKS4 is a delimiter-based protocol, and does not support NUL bytes in
string or byte-sequence fields.
SOCKS5 is a Tag-Length-Value protocol, and does not support lengths
greater than 255.

Modification:
Add validations for NUL bytes and lengths for SOCKS4 and 5,
respectively, and ensure both client- and server-side encoders behave
correctly.
Add tests to verify the correct handling of boundary conditions.

Result:
Correct delimiter and length handling in the SOCKS4/5 encoders, even
when integrators use custom implementations of the message types.

---

[Do not re-aggregate the ClientHello on every received TLS

record](netty@bb74154)

---

[Validate trust manager

configuration](netty@5f1888e)
Motivation:

Certain trust manager configurations were not being validated
against the configured endpoint identification algorithm.

Modification:

Add a check that fails fast when the configured trust manager
does not support the required verification mode.

Result:

Misconfigured trust manager setups are now rejected explicitly
instead of failing silently.

---------

Co-authored-by: Norman Maurer <[email protected]>
Co-authored-by: yawkat <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Violeta Georgieva
<[email protected]>

---------

Co-authored-by: Chris Vest <[email protected]>
Co-authored-by: yawkat <[email protected]>
Co-authored-by: multicode <[email protected]>
Co-authored-by: Violeta Georgieva <[email protected]>
Copilot AI mentioned this pull request Oct 26, 2026
Confirm Netty SNI bypass advisory is already addressed navikt/aap-innsending#630
Closed
Copilot AI mentioned this pull request Oct 27, 2026
Update Netty to 4.2.17.Final for CVE-2026-75595 navikt/aap-test-token-provider#254
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.1.137.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@normanmaurer @chrisvest
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.