CC-36508: Remediate CVE-2025-58056 and CVE-2025-58057 by upgrading Netty to 4.1.125.Final #903
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.
JIRA: CC-36508
Problem
kafka-connect-s3ships withio.netty:netty-codec-http:4.1.118.Final(pulled transitively viasoftware.amazon.awssdk:netty-nio-clientandorg.apache.hadoop:hadoop-common), which is affected by:netty-codec-http(versions < 4.1.125.Final)netty-codec(versions < 4.1.125.Final)The existing dependency management had several issues:
kafka-connect-s3/pom.xmlused4.2.5.Final, an unnecessary major version bump that risks binary incompatibility.netty-codec-http-2instead ofnetty-codec-http2), making it ineffective.io.nettymodules were aligned, creating a Jar Hell risNoSuchMethodError` at runtime from mixed Netty versions).Solution
netty.versionproperty (4.1.125.Final) in the rootpom.xml.io.netty:netty-bominto the root<dependencyManagement>section, which forces allio.nettyartifacts across the entire multi-module project to resolve to a single, aligned version.kafka-connect-s3/pom.xml— the BOM now governs all Netty artifact versions.netty-codec-http2:4.2.5.Finaldependency from the rootpom.xml.Does this solution apply anywhere else?
The BOM is applied at the root POM level, so all submodules automatically inherit the fix.
Dependency Verification
All 11
io.nettymodules now resolve to4.1.125.Final— zero old versions remain.Output of
mvn dependency:tree -pl kafka-connect-s3 | grep io.netty:<module>for each module:Compile-scope modules (10):
Test-scope module (1):
Summary: 11 io.netty modules, all at
4.1.125.Final. No version conflicts. No Jar Hell risk.Test Strategy
mvn dependency:tree -Dincludes=io.nettythat all 11 Netty modules resolve to4.1.125.Finalwith zero old versions remaining.io.netty— no version conflicts.S3SinkConnector, produced 10 Avro messages, and verified all 3 flush batches land as valid Avro files in MinIO. Zero Netty-related runtime errors (NoSuchMethodError,ClassNotFoundException, etc.).Testing done:
Release Plan