Skip to content

Backport HHH-20334 to branch 6.2 - Upgrade to Log4j 2.25.4#12168

Merged
yrodiere merged 2 commits intohibernate:6.2from
yrodiere:HHH-20334-6.2
Apr 13, 2026
Merged

Backport HHH-20334 to branch 6.2 - Upgrade to Log4j 2.25.4#12168
yrodiere merged 2 commits intohibernate:6.2from
yrodiere:HHH-20334-6.2

Conversation

@yrodiere
Copy link
Copy Markdown
Member

@yrodiere yrodiere commented Apr 13, 2026

https://hibernate.atlassian.net/browse/HHH-20334

Backport of #12163


Please make sure that the following tasks are completed:
Tasks specific to HHH-20334 (Task):

  • Add test OR check there is no need for a test
  • Update documentation as relevant: javadoc for changed API, documentation/src/main/asciidoc/userguide for all features, documentation/src/main/asciidoc/introduction for main features, links from existing documentation
  • Add entries as relevant to migration-guide.adoc (breaking changes) and whats-new.adoc (new features/improvements)

Copy link
Copy Markdown
Member

@marko-bekhta marko-bekhta left a comment

Choose a reason for hiding this comment

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

Hey @yrodiere 👋🏻

I just remembered .....

6c3c168

more recent versions of log4j are more "strict" in validating the configs and can fail if something is not 100% correct .. so just in case if this ^ wasn't backported 🫣 🤞🏻

Log4j 2.25 is more strict with its checks.

Fix extracted from hibernate@6c3c168
Technically we only:

1. Use it for testing
2. Have an API dependency in hibernate-testing, which provides some tools to work with log4j

So the various CVEs are not really relevant:

* https://logging.apache.org/security.html#CVE-2026-34478
* https://logging.apache.org/security.html#CVE-2026-34479
* https://logging.apache.org/security.html#CVE-2026-34481

Still, let’s avoid the noise related to automated tools reporting the problem.
@yrodiere yrodiere merged commit 6d3e6bc into hibernate:6.2 Apr 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants