Hi Folks, I need some help on some vulnerabilities...
# questions
u
Hi Folks, I need some help on some vulnerabilities reported on the dependency libraries used by Grails. CVE's 1. CVE-2024-12798 - logback-classic - Medium - https://security.snyk.io/vuln/SNYK-JAVA-CHQOSLOGBACK-8539867 2. CVE-2024-12801 - logback-core - Low - https://security.snyk.io/vuln/SNYK-JAVA-CHQOSLOGBACK-8539865 - We is using Spring Boot version 2.7.18 in one of our MicroServices. However, this version does not support SLF4J 2.x (the current version is 1.7.36), which is required for utilizing logback-classic 1.5.x (the recommended version to address vulnerabilities). • Please note that directly upgrading Spring Boot to version 3.x is not feasible due to compatibility issues with Grails (currently at version 6.2.1, which supports Spring Boot 2.7). • Moving to Grails 7 is not a possibility yet since it not a GA'ed Version. - As a result, the upgrade process is limited by the following dependencies: Grails → Spring Boot → Logback → SLF4J Is there a plan to address these in v6.2?
d
can you exclude the logback version with the issues and included the fixed one in your build.gradle?
thats what ive been doing for some of our snyk issues while we wait for grails 7 and spring 3
j
For CVE-2024-12798: you may be able to mitigate the risk by ensuring that you are not using JaninoEventEvaluator. https://logback.qos.ch/manual/filters.html#JaninoEventEvaluator . "A successful attack requires the user to have write access to a configuration file" https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-12798 so this requires file system access to exploit.
For CVE-2024-12801, "To prevent Server-Side Request Forgery (SSRF) attacks, SaxEventRecorder was modified to ignore external DTD files specified in DOCTYPE declarations in configuration files written in XML. This issue was discovered by 7asecurity and reported under the reference CVE-2024-12801." https://logback.qos.ch/news.html#1.5.13 Grails logback.xml files do you have external DTD files specified in DOCTYPE declarations normally.
implementation "ch.qos.logback:logback-classic:1.2.13"
implementation "ch.qos.logback:logback-core:1.2.13"
1.2.13 was released Dec 01, 2023 and 1.2.x is the highest version supported by Grails 6 since it is the highest version supported by Spring Boot 2.7.