REDHAT-BUG-2588733: High severity maven/io.netty/netty-handler vulnerability

Published Dec 2, 2026
·
Updated

IpSubnetFilter in netty-handler is Netty's CIDR-based IP access control handler, configured with a list of IpSubnetFilterRule entries of type ACCEPT or REJECT. Its sortAndFilter() method de-duplicates the supplied rules by dropping any rule whose network address falls inside the previous rule's subnet, and it does not check the rule type when doing so. A REJECT rule for a narrower subnet nested inside a broader ACCEPT rule, such as allowing 10.0.0.0/8 while denying 10.5.0.0/16, is therefore silently removed from the effective rule set.

As a result, connections from addresses the operator explicitly intended to block are admitted, because only the broader ACCEPT rule remains. The configuration looks correct to the operator, and no error or warning indicates that a rule was discarded. The impact is a bypass of IP-based access control, which can give unauthorized hosts network access to services the filter was meant to protect.

The advisory also notes a related fail-open behavior in AbstractRemoteAddressFilter. Its handleNewChannel() removes the handler from the pipeline before calling accept(). If accept() throws, the exception reaches DefaultChannelPipeline.onUnhandledInboundException, which only logs a warning, and the channel is never closed.

Affected are users of netty-handler who use IpSubnetFilter (or filters derived from AbstractRemoteAddressFilter) in versions up to and including 4.1.138.Final, and from 4.2.0.Final up to and including 4.2.18.Final. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: <= 4.1.138.Final; >= 4.2.0.Final, <= 4.2.18.Final Patched versions: 4.1.139.Final; 4.2.19.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5) CWE: CWE-284, CWE-1023 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-268p-9r42-7qp4 CVE requested by the Netty Project via PSIRTSUPT-32166.

Affected Software

1 affected component
maven/io.netty/netty-handler<=4.1.138.Final, >=4.2.0.Final<=4.2.18.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:49 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which access-control policies are exposed to this bypass?

Policies with a narrower REJECT subnet contained within a broader ACCEPT subnet are exposed. For example, a rule set that accepts 10.0.0.0/8 but rejects 10.5.0.0/16 can silently lose the narrower rejection.

2

What would an attacker need to exploit the issue?

The connecting host needs an IP address that falls within a narrower subnet the operator intended to reject, but that subnet is nested inside an earlier broader ACCEPT subnet. The effective rules retain the broader acceptance, allowing that connection.

3

How can operators tell that a configured deny rule was discarded?

The configuration can appear correct even when the rule is removed from the effective rule set. No error or warning is generated when the nested rule is discarded.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203