CWE
917
Advisory Published
Advisory Published
Updated

CVE-2024-12798: JaninoEventEvaluator vulnerability

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 SoftwareAffected VersionHow 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

Remedy

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.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-12798?

    CVE-2024-12798 is considered a high severity vulnerability due to its potential to allow arbitrary code execution.

  • How do I fix CVE-2024-12798?

    To fix CVE-2024-12798, upgrade to logback-core version 1.3.15 or 1.5.13.

  • Which versions are affected by CVE-2024-12798?

    CVE-2024-12798 affects logback-core versions from 0.1 to 1.3.14 and from 1.4.0 to 1.5.12.

  • What types of attacks can CVE-2024-12798 facilitate?

    CVE-2024-12798 can facilitate attacks that involve executing arbitrary code by compromising the logback configuration.

  • Are there any other remediation steps for CVE-2024-12798 besides upgrading?

    In addition to upgrading, review and secure your logback configuration files to prevent malicious injections.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203