Skip to content

KAFKA-20450 : Fix : Allowlist based SafeObjectInputStream#22056

Open
subbudvk wants to merge 1 commit intoapache:trunkfrom
subbudvk:subbudvk-patch-1
Open

KAFKA-20450 : Fix : Allowlist based SafeObjectInputStream#22056
subbudvk wants to merge 1 commit intoapache:trunkfrom
subbudvk:subbudvk-patch-1

Conversation

@subbudvk
Copy link
Copy Markdown

The current SafeObjectInputStream uses a denylist based approach - having a fixed denylist to be validated against for deserialization. This is a bad security practise and has also been advised so in the original PR.

Making this as a allowlist instead and allowing safe BASE_TYPES which are required by current caller (org.apache.kafka.connect.storage.FileOffsetBackingStore)

Also providing a SafeObjectInputStream(InputStream in, Set<String> allowedClasses) so if any consumer require any specific allowedClasses they can pass in here.

@subbudvk subbudvk changed the title KAFKA-20450 : Fix : Use Allowlist for SafeObjectInputStream than denylist KAFKA-20450 : Fix : Allowlist based SafeObjectInputStream Apr 14, 2026
@github-actions github-actions bot added connect small Small PRs triage PRs from the community labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connect small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant