Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. ch.qos.logback/logback-core
  4. ›
  5. CVE-2024-12798

CVE-2024-12798: QOS.CH logback-core Expression Language Injection vulnerability

December 19, 2024 (updated January 3, 2025)

ACE vulnerability in JaninoEventEvaluator by QOS.CH logback-core up to and including version 1.5.12 in Java applications allows attackers 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.

References

  • github.com/advisories/GHSA-pr98-23f8-jwxv
  • github.com/qos-ch/logback
  • github.com/qos-ch/logback/commit/2cb6d520df7592ef1c3a198f1b5df3c10c93e183
  • logback.qos.ch/news.html
  • logback.qos.ch/news.html
  • nvd.nist.gov/vuln/detail/CVE-2024-12798

Code Behaviors & Features

Detect and mitigate CVE-2024-12798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.15, all versions starting from 1.4.0 before 1.5.13

Fixed versions

  • 1.5.13
  • 1.3.15

Solution

Upgrade to versions 1.3.15, 1.5.13 or above.

Weakness

  • CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Source file

maven/ch.qos.logback/logback-core/CVE-2024-12798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.