Configure Java built-in security to address deserialization vulnerability - Configure Java built-in security to address deserialization vulnerability - Saperion ECM - Saperion - Saperion-ECM/Saperion/Foundation-EP7/Saperion-Update-Guide/Migrate-from-previous-versions-to-Foundation-EP7/Configure-Java-built-in-security-to-address-deserialization-vulnerability - Foundation EP7 - Foundation EP7

Saperion Update Guide

Platform
Saperion ECM
Product
Saperion
Release
Foundation EP7
License
ft:lastPublication
2026-03-26T12:00:19.359000
ft:locale
en-US
To ensure that Java built-in security is enabled to address the deserialization vulnerability, complete the following steps.
  1. Remove the following settings in the saperion.properties file.
    • blacklisted.classes.for.deserialization - Includes a list of blacklisted classes. If Saperion detects deserialization request from any of the listed classes, it generates an exception. A sensible default has been provided.
    • max.allowed.array.size - Specifies the maximum size of an array or array list that can be deserialized and blocks a larger request by generating an exception.
    • max.allowed.map.size - Specifies the maximum entries of a map implementation that is allowed for deserialization and blocks a larger request with an exception.
  2. Activate and list the serialization filters in the Saperion Java Core Server. To activate and list the serialization filters in the Saperion Java Core Server, complete the following steps.
    1. In the [drive:]\\{path}\Saperion\Application\scr\scr-javacoreserver\config directory, open the "wrapper.conf" file.
    2. Under the Java Additional Parameters section, add the -Djdk.serialFilter parameter.

    Example:

    # Java Additional Parameters 
    
    wrapper.java.additional.6=Djdk.serialFilter=maxarray=1000000;maxdepth=1000;
    maxrefs=1000000;!org.apache.commons.collections.functors.InvokerTransformer ;
    !com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl;
    ! org.apache.commons.collections.functors.InstantiateTransformer ;!
    org.codehaus.groovy.runtime.ConvertedClosure;!org.codehaus.groovy.runtime.MethodClosure;
    !org.apache.log4j.net.SocketServer;!com.mchange.v2.c3p0.*