Skip to content

Update log4j-version to v2.25.4#16

Open
xdev-renovate wants to merge 1 commit intodevelopfrom
renovate/log4j-version
Open

Update log4j-version to v2.25.4#16
xdev-renovate wants to merge 1 commit intodevelopfrom
renovate/log4j-version

Conversation

@xdev-renovate
Copy link
Copy Markdown
Member

@xdev-renovate xdev-renovate commented Dec 17, 2025

This PR contains the following updates:

Package Type Update Change
org.apache.logging.log4j:log4j-slf4j2-impl (source) test patch 2.25.22.25.4
org.apache.logging.log4j:log4j-core (source) test patch 2.25.22.25.4

GitHub Vulnerability Alerts

CVE-2025-68161

The Socket Appender in Apache Log4j Core versions 2.0-beta9 through 2.25.2 does not perform TLS hostname verification of the peer certificate, even when the verifyHostName configuration attribute or the log4j2.sslVerifyHostName system property is set to true.

This issue may allow a man-in-the-middle attacker to intercept or redirect log traffic under the following conditions:

  • The attacker is able to intercept or redirect network traffic between the client and the log receiver.
  • The attacker can present a server certificate issued by a certification authority trusted by the Socket Appender’s configured trust store (or by the default Java trust store if no custom trust store is configured).

Users are advised to upgrade to Apache Log4j Core version 2.25.3, which addresses this issue.

As an alternative mitigation, the Socket Appender may be configured to use a private or restricted trust root to limit the set of trusted certificates.

CVE-2026-34480

Apache Log4j Core's XmlLayout https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , in versions up to and including 2.25.3, fails to sanitize characters forbidden by the XML 1.0 specification https://www.w3.org/TR/xml/#charsets producing invalid XML output whenever a log message or MDC value contains such characters.

The impact depends on the StAX implementation in use:

  • JRE built-in StAX: Forbidden characters are silently written to the output, producing malformed XML. Conforming parsers must reject such documents with a fatal error, which may cause downstream log-processing systems to drop the affected records.
  • Alternative StAX implementations (e.g., Woodstox https://github.com/FasterXML/woodstox , a transitive dependency of the Jackson XML Dataformat module): An exception is thrown during the logging call, and the log event is never delivered to its intended appender, only to Log4j's internal status logger.

Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue by sanitizing forbidden characters before XML output.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@xdev-renovate xdev-renovate changed the title Update log4j-version to v2.25.3 Update log4j-version to v2.25.4 Mar 29, 2026
@xdev-renovate xdev-renovate force-pushed the renovate/log4j-version branch 2 times, most recently from a3588d9 to 6a4f7d3 Compare March 31, 2026 04:58
@xdev-renovate xdev-renovate changed the title Update log4j-version to v2.25.4 Update log4j-version Mar 31, 2026
@xdev-renovate xdev-renovate force-pushed the renovate/log4j-version branch 2 times, most recently from de14114 to 7e632df Compare April 2, 2026 04:54
@xdev-renovate xdev-renovate force-pushed the renovate/log4j-version branch from 7e632df to 55b8efc Compare April 11, 2026 04:47
@xdev-renovate xdev-renovate changed the title Update log4j-version Update log4j-version to v2.25.4 Apr 11, 2026
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

Successfully merging this pull request may close these issues.

1 participant