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

Disable pattern lookups for log4j #3739

Closed
wants to merge 1 commit into from
Closed

Disable pattern lookups for log4j #3739

wants to merge 1 commit into from

Conversation

fxshlein
Copy link

While this PR does not fix the RCE outlined in #3736, it disables pattern lookups for logging with log4j, making the vulnerability inaccessible (outside of actually changing the log4j config itself).

Additionally, when the next log4j release (2.15.0) becomes available, the dependency should be updated to that, since that release heavily restricts the possible LDAP connections. The changes in this PR are however still relevant, as pattern lookups should still be disabled for messages containing unknown text from outside the software.

@astrelsky
Copy link
Contributor

May you post a reference for the {nolookups} just so it is available when the developers review this.

@fxshlein
Copy link
Author

fxshlein commented Dec 10, 2021

This is where that behavior and {nolookups} is documented: https://logging.apache.org/log4j/2.x/manual/configuration.html
Its the tiny "Disables Message Pattern Lookups" section
I can definitely imagine why not many people use this...

@fxshlein
Copy link
Author

It seems that {nolookups} will now also be the default after this vulnerability: apache/logging-log4j2@04637dd

That would make this PR obsolete. I'll still leave it open in case you can't directly update to the newest version.

@ryanmkurtz ryanmkurtz added Reason: OBE This has been "overcome by events." Type: Security labels Dec 10, 2021
@fxshlein
Copy link
Author

Given 2413fa2 updates log4j to a version that is unaffected, I'll be closing this.

@fxshlein fxshlein closed this Dec 10, 2021
@ryanmkurtz
Copy link
Collaborator

Ok, thanks for your quick work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reason: OBE This has been "overcome by events." Type: Security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants