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

Log4j has a serious vulnerability. use kotlin-logging:1.12.5 #210

Closed
edgelv34 opened this issue Dec 15, 2021 · 5 comments
Closed

Log4j has a serious vulnerability. use kotlin-logging:1.12.5 #210

edgelv34 opened this issue Dec 15, 2021 · 5 comments

Comments

@edgelv34
Copy link

Log4j has a serious vulnerability.

Currently, the kotlin version I can use is 1.4.32.

Therefore, use KLogger by adding "io.github" microutils:kotlin-logging:1.12.5' to the dependency.

Verified that the version that resolves the serious vulnerability in Log4j is kotlin-logging 2.1.16 and is available only in kotlin 1.6.0 and higher.

Is there any way to deal with the vulnerability of Log4j in the previous version?

@github-actions
Copy link

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

@severn-everett
Copy link
Contributor

I was under the impression that 2.1.16 is still usable by Kotlin 1.4, given the declaration of the 1.4 API version in the Gradle file:

kotlin {
    explicitApi()
    jvm {
        compilations.all {
            // kotlin compiler compatibility options
            kotlinOptions {
                apiVersion = "1.4"
                languageVersion = "1.4"
                jvmTarget = "1.8"
            }
        }
    }

@oshai Is this correct?

@oshai
Copy link
Owner

oshai commented Dec 15, 2021

I was under the impression that 2.1.16 is still usable by Kotlin 1.4, given the declaration of the 1.4 API version in the Gradle file:

kotlin {
    explicitApi()
    jvm {
        compilations.all {
            // kotlin compiler compatibility options
            kotlinOptions {
                apiVersion = "1.4"
                languageVersion = "1.4"
                jvmTarget = "1.8"
            }
        }
    }

@oshai Is this correct?

to the best of my knowledge, yes.

@oshai
Copy link
Owner

oshai commented Dec 15, 2021

To add more context 1.x is deprecates see #180.
In addition, as far as we know kotlin-logging is not vulnerable to the cve by itself (as long as you use fixed log4j version).
See more details: #206 (comment)

@edgelv34
Copy link
Author

thx guys.
i found out as you say that kotlin-logging was used only for jvmtest purposes.

@oshai oshai closed this as completed Dec 16, 2021
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

No branches or pull requests

3 participants