CVE-2024-12798 JaninoEventEvaluator vulnerability
Attackers with write access to logback config or env vars can execute arbitrary code via JaninoEventEvaluator in Logback-core.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-12798?
CVE-2024-12798 is a medium-severity code injection vulnerability in QOS.CH Sarl Logback-core, published on 19 Dec 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
ACE vulnerability in JaninoEventEvaluator by QOS.CH logback-core upto including version 0.1 to 1.3.14 and 1.4.0 to 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.
Weakness: CWE-917
Which versions are affected by CVE-2024-12798?
4 open source packages ship an affected version, including ch.qos.logback:logback-core.
| Package | Affected | Fixed in |
|---|---|---|
ch.qos.logback:logback-core Maven | All versions | 1.3.15 |
ch.qos.logback:logback-core Maven | All versions | 1.3.15 |
ch.qos.logback:logback-core Maven | From 1.4.0 | 1.5.13 |
ch.qos.logback:logback-core Maven | From 1.4.0 | 1.5.13 |
How do I fix CVE-2024-12798?
Upgrade ch.qos.logback:logback-core to a fixed version for your release line: 1.3.15 or 1.5.13.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-12798 being exploited?
There is no known exploitation of CVE-2024-12798 in the wild and no public exploit code.
Sources
Also known as CLEANSTART-2026-DB97868, CLEANSTART-2026-TA42944, CLSA-2026-1793131185, CLSA-2026-1793136275, DEBIAN-CVE-2024-12798, ECHO-50cb-9ed7-3fa1 and 13 more.