Skip to content

GEODE-10579: Remediate CVE-2026-34478 - Improper Output Neutralization for Logs#8005

Open
JinwooHwang wants to merge 1 commit intoapache:developfrom
JinwooHwang:feature/GEODE-10579
Open

GEODE-10579: Remediate CVE-2026-34478 - Improper Output Neutralization for Logs#8005
JinwooHwang wants to merge 1 commit intoapache:developfrom
JinwooHwang:feature/GEODE-10579

Conversation

@JinwooHwang
Copy link
Copy Markdown
Contributor

Summary

Upgrade Apache Log4j from 2.25.3 to 2.25.4 to remediate CVE-2026-34478.

Security Vulnerability

Field Detail
CVE CVE-2026-34478
CVSS 6.9 MEDIUM (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N)
CWE CWE-117 Improper Output Neutralization for Logs, CWE-684 Incorrect Provision of Specified Functionality
Affected versions Log4j Core 2.21.0 through 2.25.3
Fixed in Log4j Core 2.25.4
Published 2026-04-10

Description

Log4j Core's Rfc5424Layout (versions 2.21.0 through 2.25.3) is vulnerable to log injection via CRLF sequences due to undocumented renames of security-relevant configuration attributes. Two distinct issues affect users of stream-based syslog services who configure Rfc5424Layout directly:

  1. newLineEscape attribute silently renamed — Newline escaping stopped working for users of TCP framing (RFC 6587), exposing them to CRLF injection in log output.
  2. useTlsMessageFormat attribute silently renamed — Users of TLS framing (RFC 5425) were silently downgraded to unframed TCP (RFC 6587) without newline escaping.

Users of the SyslogAppender are not affected, as its configuration attributes were not modified.

Changes

Pure version string replacement of 2.25.32.25.4 across 10 files (33 insertions, 33 deletions):

File What changed
build-tools/geode-dependency-management/.../DependencyConstraints.groovy Central managed version definition
geode-assembly/.../management/build.gradle Hardcoded log4j-slf4j-impl dependency
boms/geode-all-bom/.../expected-pom.xml 5 <version> entries in expected POM
geode-assembly/.../assembly_content.txt 5 jar filename references
geode-assembly/.../gfsh_dependency_classpath.txt 5 jar filename references
geode-server-all/.../dependency_classpath.txt 5 jar filename references
geode-docs/.../configuring_log4j2.html.md.erb Documentation references
geode-docs/.../how_logging_works.html.md.erb Documentation references
geode-docs/.../weblogic_setting_up_the_module.html.md.erb Documentation references

No code logic changes — this is a dependency version bump only.

Verification

  • ./gradlew testBUILD SUCCESSFUL
  • No remaining references to 2.25.3 in the codebase
  • Rebased cleanly onto latest origin/develop with no merge conflicts

References

For all changes, please confirm:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
  • Has your PR been rebased against the latest commit within the target branch (typically develop)?
  • Is your initial contribution a single, squashed commit?
  • Does gradlew build run cleanly?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

…n for Logs

Upgrade Apache Log4j from 2.25.3 to 2.25.4 to remediate CVE-2026-34478
(CVSS 6.9 MEDIUM).

VULNERABILITY:
  Log4j Core's Rfc5424Layout (versions 2.21.0 through 2.25.3) is
  vulnerable to log injection via CRLF sequences due to undocumented
  renames of security-relevant configuration attributes (CWE-117,
  CWE-684). Two issues affect users of stream-based syslog services:
  - The newLineEscape attribute was silently renamed, disabling newline
    escaping for TCP framing (RFC 6587) and exposing CRLF injection.
  - The useTlsMessageFormat attribute was silently renamed, silently
    downgrading TLS framing (RFC 5425) to unframed TCP without newline
    escaping.

REMEDIATION:
  Updated all Log4j dependency references from 2.25.3 to 2.25.4 across
  dependency constraints, build files, documentation, and test resources.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2026-34478
  apache/logging-log4j2#4074
  https://logging.apache.org/security.html#CVE-2026-34478
@JinwooHwang JinwooHwang requested a review from kaajaln2 April 16, 2026 14:52
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