Using JMSAppender in log4j configuration may lead to deserialization of untrusted data
High severity
GitHub Reviewed
Published
Dec 17, 2021
in
ClickHouse/clickhouse-jdbc-bridge
•
Updated Jan 9, 2023
Package
Affected versions
< 2.0.7
Patched versions
2.0.7
Description
Reviewed
Dec 17, 2021
Published to the GitHub Advisory Database
Dec 17, 2021
Last updated
Jan 9, 2023
Impact
ClickHouse JDBC Bridge uses slf4j-log4j12 1.7.32, which depends on log4j 1.2.17. It allows a remote attacker to execute code on the server, if you changed default log4j configuration by adding JMSAppender and an insecure JMS broker.
Patches
The patch version
2.0.7
removed log4j dependency by replacingslf4j-log4j12
toslf4j-jdk14
. Logging configuration is also changed fromlog4j.properties
tologging.properties
.Workarounds
JMSAppender.class
:References
Please refer to CVE-2021-4104 to read more.
For more information
If you have any questions or comments about this advisory, please feel free to open an issue in the repository.
References