Skip to content

[java] Refactor java class deserialization checks - #3459

Closed
micrictor wants to merge 4 commits into
apache:mainfrom
micrictor:main
Closed

[java] Refactor java class deserialization checks#3459
micrictor wants to merge 4 commits into
apache:mainfrom
micrictor:main

Conversation

@micrictor

Copy link
Copy Markdown

What is the purpose of the change

This PR refactors the Java class deserialization checks into a separate class and applies the security checks on all deserialization paths.

Verifying this change

This change added tests and can be verified as follows:

  • Added unit tests to validate that permitted classes are allowed to deserialized, and that unpermitted classes are not
  • Tests validate both SERIALIZABLE_PACKAGES and SERIALIZABLE_CLASSES

Documentation

No new features.

@github-actions github-actions Bot added Java Pull Requests for Java binding build labels Aug 14, 2025
@martin-g

Copy link
Copy Markdown
Member

This might be obsolete now with #3525

@micrictor

Copy link
Copy Markdown
Author

Complete implementation that met all goals of this change already merged and in both master and the 1.12 branch

@micrictor micrictor closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants