NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

mediumCVSS 4.0 5.9GHSA-pr98-23f8-jwxv

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.

Published Dec 19, 2024 · Updated Jan 3, 2025

Affected packages

ch.qos.logback:logback-core

Ecosystem
Maven
Affected
>= 1.4.0, < 1.5.13
Fixed in
1.5.13
Check
mvn dependency:tree -Dincludes=ch.qos.logback:logback-core

ch.qos.logback:logback-core

Ecosystem
Maven
Affected
< 1.3.15
Fixed in
1.3.15
Check
mvn dependency:tree -Dincludes=ch.qos.logback:logback-core

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to HTHou, perexis, GoetzGoerisch, pjfanning.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries