Skip to content

[HOTFIX] Add length validation before calling Snappy uncompress #4367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

jackylk
Copy link
Contributor

@jackylk jackylk commented Jun 30, 2025

Why is this PR needed?

There is a security issue reported by the Apache Security Team. Calling Snappy.uncompress without length validation is subject to attack.

What changes were proposed in this PR?

Add length validation before calling Snappy, modified all places in carbondata-core SnappyCompressor

Does this PR introduce any user interface change?

  • No

Is any new testcase added?

  • No

@chenliang613
Copy link
Contributor

LGTM

@chenliang613 chenliang613 merged commit ce99229 into apache:master Jul 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants