MODERATE 5.9

CVE-2024-12798

QOS.CH logback-core Expression Language Injection vulnerability

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
ch.qos.logback » logback-core
< 1.3.15>= 1.4.0, < 1.5.13
1.3.15, 1.5.13

Blast radius

1affected artifacts
162affected versions
83,649dependent artifacts (est.)
2,511,864dependent versions

74% of the dependent artifacts (61,957) still pull an affected version in their latest release.

DepthDependent versions
Direct
106,876
2 hops
488,004
3 hops
531,302
4 hops
583,699
5 hops
558,773
6 hops
243,210

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.