2021-12-14 Release of version 1.2.8 • In response to CVE-2021-42550 and LOGBACK-1591 we have decided to make the following steps.
1) we have disabled all JNDI lookup code in logback until further notice. This impacts ContextJNDISelector and <insertFromJNDI> element in configuration files.
2) we have removed all database (JDBC) related code in the project with no replacement.
可以看到,第一段logback先是出于安全性考虑,移除了所有JDBC代码在上面的依赖中
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
2021-12-16 Release of version 1.2.9 We note that the vulnerability mentioned in CVE-2021-42550 requires write access to logback's configuration file as a prerequisite. Please understand that log4Shell and CVE-2021-42550 are of different severity levels. In response to CVE-2021-42550 (aka LOGBACK-1591) we have decided to make the following steps.
1) Hardened logback's JNDI lookup mechanism to only honor requests in the java: namespace. All other types of requests are ignored. Many thanks to Michael Osipov for suggesting this change and providing the relevant PR.
2) SMTPAppender was hardened.
3) Temporarily removed DB support for security reasons.
4) Removed Groovy configuration support. As logging is so pervasive and configuration with Groovy is probably too powerful, this feature is unlikely to be reinstated for security reasons.
We note that the aforementioned vulnerability requires write access to logback's configuration file as a prerequisite. Please understand that log4Shell/CVE-2021-44228 and CVE-2021-42550 are of different severity levels. A successful RCE attack with CVE-2021-42550 requires all of the following conditions to be met:
write access to logback.xml use of versions < 1.2.9 reloading of poisoned configuration data, which implies application restart or scan="true" set prior to attack As an additional extra precaution, in addition to upgrading to logback version 1.2.9, we also recommend users to set their logback configuration files as read-only.
2022-04-20 Release of logback.db version 1.2.11.1 As of logback version 1.2.8 DBAppender no longer ships with logback. However, DBAppender for logback-classic is available under the following Maven coordinates: ch.qos.logback.db:logback-classic-db:1.2.11.1 and for logback-access under ch.qos.logback.db:logback-access-db:1.2.11.1 Both of these artifacts require ch.qos.logback.db:logback-core-db:1.2.11.1 which will be pulled in automatically by Maven's transitivity rules. This release corrects the artifact name of logback-classic-db fixing LOGBACK-1631 as reported by Juan Pablo Santos Rodriguez.