Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PF-2978] High severity security issue - Upgrade logback-core #127

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

rtitle
Copy link
Contributor

@rtitle rtitle commented Dec 4, 2023

https://broadworkbench.atlassian.net/browse/PF-2978

CVE-2023-6378 is fixed as of logback 1.4.14: https://logback.qos.ch/news.html#1.3.14

However spring-boot pulls in logback versions which are vulnerable:

  • spring-boot:3.1.2 pulls in logback-core:1.4.8
  • spring-boot:3.2.0 pulls in logback-core:1.4.11

See also this spring-boot issue from today: spring-projects/spring-boot#38643

So I'm leaving spring-boot alone, and explicitly pulling in logback from TCL, which seems to work.

Downstream services will need to update their TCL dependency.

Copy link

sonarqubecloud bot commented Dec 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -119,8 +118,7 @@ protected static void initializeLogging(ConfigurableApplicationContext applicati
// seems to work. But if we encounter future issues in human-readable logging control, this
// is a reasonable place to look more closely.
logbackLogger.detachAndStopAllAppenders();
new ContextInitializer(logbackLogger.getLoggerContext())
.configureByResource(ResourceUtils.getURL("classpath:logback.xml"));
new ContextInitializer(logbackLogger.getLoggerContext()).autoConfig();
Copy link
Contributor Author

@rtitle rtitle Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the same thing. The old method was deprecrated and now removed, and said:

    /**
     * This method is deprecated with no replacement
     * @param url
     * @throws JoranException
     */
    @Deprecated
    public void configureByResource(URL url) throws JoranException {

https://github.com/qos-ch/logback/blob/v_1.4.8/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java#L55-L61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants