Skip to content

Backport HHH-20334 to branch 7.2 - Upgrade to Log4j 2.25.4#12165

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

Backport HHH-20334 to branch 7.2 - Upgrade to Log4j 2.25.4#12165
yrodiere merged 2 commits intohibernate:7.2from
yrodiere:HHH-20334-7.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)

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
Copy link
Copy Markdown
Member Author

The only failure is unrelated; it's a known issue in Maven Plugin tests: https://hibernate.zulipchat.com/#narrow/channel/132094-hibernate-orm-dev/topic/EnhancerMojoIT.20failing/with/585151353

@yrodiere yrodiere merged commit a24f8f5 into hibernate:7.2 Apr 13, 2026
26 of 28 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