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.
Other sources
QOS.CH logback-core versions up to 1.5.18 contain an ACE vulnerability in conditional configuration file processing in Java applications. This vulnerability allows an attacker to execute arbitrary code by compromising an existing logback configuration file or by injecting a malicious environment variable before program execution.
A successful attack requires the Janino library and Spring Framework to be present on the user's class path. Additionally, 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 privileges.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/ch.qos.logback:logback-coreto a version that resolves this vulnerability.Fixed in 1.3.16 - Upgrade
Upgrade
maven/ch.qos.logback:logback-coreto a version that resolves this vulnerability.Fixed in 1.5.19 - Upgrade
Upgrade
debian/logbackto a version that resolves this vulnerability.Fixed in 1:1.6.3-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.5.19 - Configuration
Remove the Janino library from the Java classpath.
Java application classpath = Janino absent
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.