These instructions are based on the mitigation steps documented by the Apache Pulsar project for vulnerable versions of Log4j2.
The vulnerable log4j code is in these Apache Pulsar versions:
All releases prior to 2.7.0, prior to and including 2.7.3, prior to and including 2.8.1 are affected.
There are two available ways to address this issue and disable the compromised functionality:
1) Using Java properties: Set the "log4j2.formatMsgNoLookups" property to "true". This can be set when starting the JVM by adding
"-Dlog4j2.formatMsgNoLookups=true" to the command line used to start Apache Pulsar components.
Alternatively
2) Using an environment variable: Set LOG4J_FORMAT_MSG_NO_LOOKUPS=true to disable the compromised functionality.
All Apache Pulsar brokers and connectors should be stopped and restarted using one of the two mitigation steps outlined above. Disabling the compromised functionality will not impact any Apache Pulsar functionality. Apache Pulsar clients, BookKeepers, and ZooKeepers are not affected by this issue and the mitigation steps outlined above are benign if applied to them.