is it save to call StrSubstitutor.replace(final LogEvent event, final, String source) with Log4j 2.17.0

Franz van Betteraey <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <[email protected]>
Dear Log4j Team,

first of all thank you for your tireless efforts around the project,
which I appreciate very much.

My question is: Is it safe to call 'StrSubstitutor.replace(final
LogEvent event, final String source)' in a custom Layout class that
inherits from AbstractStringLayout? The StrSubstitutor object is derived
via the configuration and the 'source' string might contain any lookup
placeholder.

It is not clear to me if the defense mechanisms against the current
security vulnerabilities take effect before such a call and prevents the
framework on calling this method, or if the call is still secure and the
defense happens afterwards (e.g. by not instantiating lookups).

I thank you for any advice and wish you happy and peaceful holidays.

   Franz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.