Skip to content

Fixes #738 - Add JDK serial filter to WildFly launch arguments#739

Merged
robstryker merged 1 commit into
redhat-developer:masterfrom
robstryker:issue-738-jdk-serial-filter
May 13, 2026
Merged

Fixes #738 - Add JDK serial filter to WildFly launch arguments#739
robstryker merged 1 commit into
redhat-developer:masterfrom
robstryker:issue-738-jdk-serial-filter

Conversation

@robstryker
Copy link
Copy Markdown
Collaborator

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

  • Created Wildfly340DefaultLaunchArguments class with JDK serial filter argument
  • Updated Wildfly350ExtendedProperties to use the new launch arguments class
  • Updated Wildfly380ExtendedProperties to use the new launch arguments class

Technical Details

The serial filter is applied with the following limits (matching WildFly startup scripts):

  • maxbytes=10485760 - Max serialized data size: 10MB
  • maxdepth=128 - Max object graph depth
  • maxarray=100000 - Max array size
  • maxrefs=300000 - Max object references

Testing

This should be tested with WildFly 35+ and 38+ to ensure:

  • The JVM argument is properly applied
  • Server starts successfully with the filter in place
  • No compatibility issues

Fixes #738

…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>
@robstryker robstryker merged commit 08957ba into redhat-developer:master May 13, 2026
1 check failed
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.

Add JDK serial filter to WildFly launch arguments for security hardening

1 participant