7.0high
Conditional processing of logback.xml configuration file, in conjuction with Spring Framework and Janino
- Severity
- 7.0high CVSS:4.0 by NCSC.ch
- Exploit likelihood
- 0.24% (higher than 9% of CVEs)
- Published
- Last changed
- Assigned by
- NCSC.ch
- Also known as
- GHSA-25qh-j22f-pwp8
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| QOS.CH Sarl Logback-core | from 0.9.20 up to 1.5.18 Not affected: 1.5.19, 1.3.16 | CVE List |
| ch.qos.logback:logback-core (Maven) | from 1.4.0 before 1.5.19, before 1.3.16 | GitHub Advisory Database |
All scores
| NCSC.ch | 7.0high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/S:P/AU:N/RE:M/U:Green |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Una vulnerabilidad ACE en el procesamiento condicional de archivos de configuración por QOS.CH logback-core hasta la versión 1.5.18 inclusive en aplicaciones Java, permite a un atacante ejecutar código arbitrario comprometiendo un archivo de configuración logback existente o inyectando una variable de entorno antes de la ejecución del programa. Un ataque exitoso requiere la presencia de la biblioteca Janino y Spring Framework en el classpath del usuario. Además, el atacante debe tener acceso de escritura a un archivo de configuración. Alternativamente, el atacante podría inyectar una variable de entorno maliciosa que apunte a un archivo de configuración malicioso. En ambos casos, el ataque requiere privilegios existentes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-11226 changed 2026-06-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-25qh-j22f-pwp8 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-11226 changed 2026-10-09 | Public domain |