CVEfocus › CVE database › CVE-2024-12798

CVE-2024-12798JaninoEventEvaluator vulnerability

CVSS 5.9 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2024-12-19Updated 2025-01-03Assigner: NCSC.ch

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.

CWE-917

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

2Fixed
6Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04logbackWill 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.04logbackFix pendingUBUNTU-CVE-2024-12798
Ubuntu 20.04logbackFix pendingUBUNTU-CVE-2024-12798
Ubuntu 18.04logbackFix pendingUBUNTU-CVE-2024-12798
Ubuntu 16.04logbackFix pendingUBUNTU-CVE-2024-12798
Debian 14logbackFixed1:1.6.3-1DEBIAN-CVE-2024-12798
Debian 13logbackFix pendingDEBIAN-CVE-2024-12798
Debian 12logbackFix pendingDEBIAN-CVE-2024-12798
Maven librarych.qos.logback:logback-coreFixed1.3.15GHSA-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.

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.