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

Spring-boot-starter-log4j2 please support the latest version of log4j-2.15 0-rc1 #28958

Closed
andotorg opened this issue Dec 10, 2021 · 17 comments
Closed
Labels
status: invalid An issue that we don't feel is valid

Comments

@andotorg
Copy link

Spring-boot-starter-log4j2 please support the latest version of log4j-2.15 0-rc1

Log4j-2.15 0-rc1 security vulnerability latest fixed version

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 10, 2021
@yochi2333
Copy link

Now, Log4j-2.15 0-rc2 is the latest fixed version.

@ZeroZeroLi
Copy link

wait online

@scottfrederick
Copy link
Contributor

scottfrederick commented Dec 10, 2021

Spring Boot will pick up the next Log4J release as part of the semi-automated dependency upgrade process. In the meantime, you can configure your build to use a version of your choice by setting the log4j2.version property in your build file as shown in the documentation.

@scottfrederick scottfrederick removed the status: waiting-for-triage An issue we've not yet triaged label Dec 10, 2021
@snicoll snicoll added the status: invalid An issue that we don't feel is valid label Dec 10, 2021
@andotorg
Copy link
Author

waiting for Spring Boot will pick up the next Log4J release as part of the semi-automated dependency upgrade process;
use log4j.version rebuild springboot project? im so sorry,It's too difficult for me to build a spring boot project。

@andotorg
Copy link
Author

Will spring officials consider rebuilding a version?

@snicoll
Copy link
Member

snicoll commented Dec 10, 2021

@andotorg We will upgrade to this newer version of log4j but this won't happen in a maintenance release so if you want to use this version now, overriding it in your application as described in the documentation is what you should be doing.

It's too difficult for me to build a spring boot project。

If we did the upgrade, you'd have to rebuild your application anyway.

@andotorg

This comment has been minimized.

@andotorg
Copy link
Author

log4j2 2.15.0 official version published

@nessex
Copy link

nessex commented Dec 10, 2021

To add some context, this is in response to the following RCE vulnerability:

https://www.lunasec.io/docs/blog/log4j-zero-day/

@snicoll
Copy link
Member

snicoll commented Dec 10, 2021

@nessex thanks. We are aware of the CVE and the answers above still apply, there are a number of mitigations available in the link you've provided and upgrading your app is one of them. There's no need to wait for a Spring Boot release to do that.

@Artur-
Copy link
Contributor

Artur- commented Dec 10, 2021

Please note that the property mentioned above is wrong, at least for 2.5

Set

<log4j2.version>2.15.0</log4j2.version>

to upgrade the version

@snicoll
Copy link
Member

snicoll commented Dec 10, 2021

Thanks @Artur-, that is correct and I've edited the comment above. All dependency versions are available in the doc.

@bmulder-innoseis

This comment has been minimized.

@snicoll
Copy link
Member

snicoll commented Dec 10, 2021

@bmulder-innoseis I am not sure what you're trying to report.

spring-boot-starter-logging uses log4j (without the 2) as a dependency of log4j-to-slf4j.

This isn't a log4j dependency but the adapter from Log4j2's API to SLF4J. The log4j2 starter is here and the way to configure Spring Boot to use it is documented here.

There is no log4j dependency version in that doc you linked.

I am aware. There is a log4j2 version though which is what this issue is all about.

If you have more questions, please ask them on StackOverflow.

@andotorg
Copy link
Author

@snicol这是关于 log4j 2。 但是,spring-boot-starter-logging 使用 log4j(没有 2)作为 log4j-to-slf4j 的依赖项。 您链接的该文档中没有 log4j 依赖项版本。

modify sample:
Add <log4j2.version>2.15.0</log4j2.version> in the tab in pom.xml of your project

@yochi2333
Copy link

But maven repository doesn`t exsits the version 2.15.0 for log4j2.

@spring-projects spring-projects locked as off-topic and limited conversation to collaborators Dec 10, 2021
@snicoll
Copy link
Member

snicoll commented Dec 10, 2021

Thanks everyone. Spring Boot does not use log4j2 by default and those of you who are opting-in for log4j2 can update to a version that fixes the problem.

Please review the documentation for Maven: if you are using our starter, or if you are importing our bom.

If you are using Gradle, see this section.

The name of the property is log4j2.version as documented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

9 participants