Fixes #738 - Add JDK serial filter to WildFly launch arguments#739
Merged
robstryker merged 1 commit intoMay 13, 2026
Merged
Conversation
…arguments - Created Wildfly340DefaultLaunchArguments with JDK serial filter - Updated Wildfly350ExtendedProperties to use new launch arguments - Updated Wildfly380ExtendedProperties to use new launch arguments - Serial filter protects against deserialization attacks with limits: maxbytes=10485760, maxdepth=128, maxarray=100000, maxrefs=300000 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds the JDK serialization filter to WildFly 34+ launch arguments for protection against deserialization attacks, matching the behavior of WildFly's startup scripts.
Changes
Wildfly340DefaultLaunchArgumentsclass with JDK serial filter argumentWildfly350ExtendedPropertiesto use the new launch arguments classWildfly380ExtendedPropertiesto use the new launch arguments classTechnical Details
The serial filter is applied with the following limits (matching WildFly startup scripts):
maxbytes=10485760- Max serialized data size: 10MBmaxdepth=128- Max object graph depthmaxarray=100000- Max array sizemaxrefs=300000- Max object referencesTesting
This should be tested with WildFly 35+ and 38+ to ensure:
Fixes #738