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.
The patch version 2.0.7
removed log4j dependency by replacing slf4j-log4j12
to slf4j-jdk14
. Logging configuration is also changed from log4j.properties
to logging.properties
.
JMSAppender.class
:```(bash)
apt-get update && apt-get install -y zip
zip -d clickhouse-jdbc-bridge*.jar ru/yandex/clickhouse/jdbcbridge/internal/log4j/net/JMSAppender.class ```
Please refer to CVE-2021-4104 to read more.
If you have any questions or comments about this advisory, please feel free to open an issue in the repository.
{ "nvd_published_at": null, "cwe_ids": [ "CWE-502" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2021-12-17T20:34:04Z" }