CVE-2025-11226: Logback core QOS.CH Logback-core Is Vulnerable To Vulnerability
MODERATECVE-2025-11226 is a MODERATE qos.ch logback-core is vulnerable to vulnerability (CWE-20: Improper Input Validation) affecting Logback core libraries in the Maven ecosystem. The issue involves qos.ch logback-core is vulnerable to arbitrary code execution through file processing. Remediation is available by upgrading affected packages to version 1.5.19, 1.3.16.
CVE-2025-11226 at a Glance
How to Fix CVE-2025-11226
To remediate this vulnerability, upgrade all affected Logback core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.5.19</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.3.16</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=ch.qos.logback
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-11226, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=ch.qos.logback
Analyze the terminal output to locate any version of Logback core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.19), your application is affected.
Note: The mvn dependency:tree -Dincludes=ch.qos.logback command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Logback core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-11226 Affected Logback core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ch.qos.logback:logback-core
|
Maven |
≥ 1.4.0
< 1.5.19
|
1.5.19
|
|
ch.qos.logback:logback-core
|
Maven |
< 1.3.16
|
1.3.16
|
References
Frequently Asked Questions
What is CVE-2025-11226?
Which Logback core versions are affected?
What version fixes CVE-2025-11226?
Is logback-core affected?
What CWE is associated with CVE-2025-11226?
How can I check Maven dependencies for CVE-2025-11226?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-25qh-j22f-pwp8",
"modified" : "2025-10-31T20:17:45Z",
"published" : "2025-10-01T09:30:24Z",
"aliases" : [ "CVE-2025-11226" ],
"summary" : "QOS.CH logback-core is vulnerable to Arbitrary Code Execution through file processing",
"details" : "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.\n\nA 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:L/SC:H/SI:L/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "ch.qos.logback:logback-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.5.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ch.qos.logback:logback-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11226"
}, {
"type" : "WEB",
"url" : "https://github.com/qos-ch/logback/issues/974"
}, {
"type" : "WEB",
"url" : "https://github.com/qos-ch/logback/commit/61f6a2544f36b3016e0efd434ee21f19269f1df7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/qos-ch/logback"
}, {
"type" : "WEB",
"url" : "https://github.com/qos-ch/logback/releases/tag/v_1.5.19"
}, {
"type" : "WEB",
"url" : "https://logback.qos.ch/news.html#1.3.16"
}, {
"type" : "WEB",
"url" : "https://logback.qos.ch/news.html#1.5.19"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-21T21:10:11Z",
"nvd_published_at" : "2025-10-01T08:15:31Z"
}
}