First published: Thu Dec 19 2024(Updated: )
ACE vulnerability in JaninoEventEvaluator by QOS.CH logback-core upto and including version 1.5.12 in Java applications allows attacker to execute arbitrary code by compromising an existing logback configuration file or by injecting an environment variable before program execution. Malicious logback configuration files can allow the attacker to execute arbitrary code using the JaninoEventEvaluator extension. A successful attack requires the user to 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.
Credit: vulnerability@ncsc.ch vulnerability@ncsc.ch
Affected Software | Affected Version | How to fix |
---|---|---|
maven/ch.qos.logback:logback-core | <1.3.15 | 1.3.15 |
maven/ch.qos.logback:logback-core | >=1.4.0<1.5.13 | 1.5.13 |
Remove Janino from the Java classpath. Alternatively, update to logback version 1.5.13 or later. If you are using the 1.3.x series, update to logback version 1.3.15 or later. Note that the 1.4.x series remains vulnerable.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-12798 is considered a high severity vulnerability due to its potential to allow arbitrary code execution.
To fix CVE-2024-12798, upgrade to logback-core version 1.3.15 or 1.5.13.
CVE-2024-12798 affects logback-core versions from 0.1 to 1.3.14 and from 1.4.0 to 1.5.12.
CVE-2024-12798 can facilitate attacks that involve executing arbitrary code by compromising the logback configuration.
In addition to upgrading, review and secure your logback configuration files to prevent malicious injections.