Skip to content

Conversation

@tanishq-chugh
Copy link
Contributor

@tanishq-chugh tanishq-chugh commented Apr 2, 2025

What changes were proposed in this pull request?

Upgrade a single instance of compile time netty-codec-http

Why are the changes needed?

To fix CVE-2024-29025

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

Yes
dpn_netty_119.txt

How was this patch tested?

Ran manual queries after local hive build with patch

</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the goal is for the transitive dependencies to have higher version of netty?

Also, I see older version of netty (can be seen in your attached dependency tree) in packaging/target/apache-hive-4.1.0-SNAPSHOT-bin/apache-hive-4.1.0-SNAPSHOT-bin/lib coming from zookeeper 3.8.4 and has CVE's as well https://mvnrepository.com/artifact/io.netty/netty-handler/4.1.105.Final

netty-handler-4.1.105.Final.jar
netty-transport-native-epoll-4.1.105.Final.jar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have added these deps as well in dependencyManagement in bd96998 , so these transitive dependencies are of the same versions.

<libthrift.version>0.16.0</libthrift.version>
<log4j2.version>2.24.3</log4j2.version>
<mockito-core.version>3.4.4</mockito-core.version>
<netty.version>4.1.116.Final</netty.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayushtkn PR is green for netty 4.1.119.Final. Could you please review?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 3, 2025

<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding dependency is scope of upgrade? I don't see any exclusions either which could lead it this?

Copy link
Contributor Author

@tanishq-chugh tanishq-chugh Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are adding these specifications in dependencyManagement, coz other deps were bringing in older versions of these transitively and with this addition we'll get only 4.1.119.Final.
We are addressing @Aggarwal-Raghav comment with this #5736 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are adding these specifications in dependencyManagement, coz other deps were bringing in older versions of these transitively and with this addition we'll get only 4.1.119.Final. We are addressing @Aggarwal-Raghav comment with this #5736 (comment)

@tanishq-chugh , can you please provide the sonatype report URL for this? I don't see netty-codec-http coming up in my nexus scan in my org.
Regarding this approach to add dependency of higher version is not a good idea, IMO, because if higher version of netty is not backward compatible with older version (required by transitive dependency) then we are prone to NoSuchMethod or NoClassFound errors at runtime. This is similar to the avro issue #5593 that we last discussed.

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Feel free to reach out on the [email protected] list if the patch is in need of reviews.

@github-actions github-actions bot added the stale label Jun 3, 2025
@github-actions github-actions bot closed this Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants