CVE-2024-12798JaninoEventEvaluator vulnerability
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | logback | Will not fix Backporting the fix from 1.5.13 to 1.2.X involved breaking changes to the code, the patch is infeasible as is. | UBUNTU-CVE-2024-12798 | |
| Ubuntu 22.04 | logback | Fix pending | UBUNTU-CVE-2024-12798 | |
| Ubuntu 20.04 | logback | Fix pending | UBUNTU-CVE-2024-12798 | |
| Ubuntu 18.04 | logback | Fix pending | UBUNTU-CVE-2024-12798 | |
| Ubuntu 16.04 | logback | Fix pending | UBUNTU-CVE-2024-12798 | |
| Debian 14 | logback | Fixed | 1:1.6.3-1 | DEBIAN-CVE-2024-12798 |
| Debian 13 | logback | Fix pending | DEBIAN-CVE-2024-12798 | |
| Debian 12 | logback | Fix pending | DEBIAN-CVE-2024-12798 | |
| Maven library | ch.qos.logback:logback-core | Fixed | 1.3.15 | GHSA-pr98-23f8-jwxv |
What the vendor says
As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- QOS.CH Sarl Logback-core: affected: 0.1 to 1.3.14, 1.4.0 to 1.5.12, 1.3.15 not affected, 1.5.13 not affected
Solution: 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.
Workaround: 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.
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.