Skip to content

RATIS-2700. Add a disallow-list for ObjectInputStream - #1596

Open
szetszwo wants to merge 2 commits into
apache:masterfrom
szetszwo:RATIS-2700
Open

szetszwo wants to merge 2 commits into
apache:masterfrom
szetszwo:RATIS-2700

Conversation

@szetszwo

Copy link
Copy Markdown
Contributor

private static final Set<String> DISALLOWED_CLASSES;
static {
// all the classes below are subjected to java deserialization vulnerabilities
final List<String> disallowed = Arrays.asList(

@amaliujia amaliujia Sep 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am curious how do we acquire this list? Is there an official place to check?

E.g. what if there are false positives or true negatives or missed class names.

@szetszwo szetszwo Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

By best effort. See the comments in RATIS-2700.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ack the list sourced from AI models.

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