[fix][sec] Update Hbase version to 2.6.3-hadoop3 and exclude Avro from hbase-client to remediate CVEs #24953
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.
Fixes #xyz
Main Issue: #xyz
PIP: #xyz
Motivation
This PR updates the Pulsar IO HBase module to remove vulnerable transitive dependencies introduced by Apache Avro. Older Avro versions brought into the project were affected by security issues related to schema parsing and unsafe deserialization.
Vulnerabilities addressed include:
CVE-2024-47561 – Schema parsing RCE risk
CVE-2023-39410 – Uncontrolled memory use during deserialization
Excluding Avro from the HBase client and updating the HBase version ensures a safer and cleaner dependency tree.
Modifications
This PR introduces two changes:
hbase.version raised from 2.6.0-hadoop3 → 2.6.3-hadoop3
Excluded avro from hbase-client
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: Nordix#12