CVE-2025-11226: Conditional processing of logback.xml configuration file, in conjuction with Spring Framework and Janino
ACE vulnerability in conditional configuration file processing by QOS.CH logback-core up to and including version 1.5.18 in Java applications, allows an attacker to execute arbitrary code by compromising an existing logback configuration file or by injecting an environment variable before program execution.
A successful attack requires the presence of Janino library and Spring Framework to be present on the user's class path. In addition, the attacker must have write access to a configuration file. Alternatively, the attacker could inject a malicious environment variable pointing to a malicious configuration file. In both cases, the attack requires existing privilege.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
QOS.CH logback-coreto a version that resolves this vulnerability.Fixed in 1.5.19 - Compensating control
Remove the Janino library from the Java classpath so it is not present on the user's class path.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-11226?
The severity of CVE-2025-11226 is critical due to its potential for remote code execution.
How do I fix CVE-2025-11226?
To fix CVE-2025-11226, upgrade to logback-core version 1.5.19 or later.
What systems are affected by CVE-2025-11226?
CVE-2025-11226 affects QOS.CH logback-core versions up to and including 1.5.18.
What kind of attacks can CVE-2025-11226 facilitate?
CVE-2025-11226 can facilitate arbitrary code execution attacks through compromised logback configuration files.
Is there a workaround for CVE-2025-11226?
There are no official workarounds for CVE-2025-11226; upgrading is the recommended approach.