# CVE-2024-12798: JaninoEventEvaluator vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L/RE:L/U:Clear`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Passive; Confidentiality impact: Low; Integrity impact: High; Availability impact: Low; Confidentiality impact on other systems: Low; Integrity impact on other systems: High; Availability impact on other systems: Low; RE: L; U: Clear
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.49% (percentile 35, 2026-11-28)
- **CWE:** CWE-917
- **Aliases:** GHSA-pr98-23f8-jwxv
- **Published:** 2024-12-19T15:14:21.598Z
- **Modified:** 2026-09-10T03:50:21.783Z

## Who should check

- Projects that depend on Maven package ch.qos.logback:logback-core (\>= 1.4.0, \< 1.5.13)
- Anyone running QOS.CH Sarl Logback-core \>= 0.1, \<= 1.3.14; \>= 1.4.0, \<= 1.5.12

## Description

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.

## Affected and fixed versions

- Maven `ch.qos.logback:logback-core`: affected \>= 1.4.0, \< 1.5.13; fixed 1.5.13, 1.3.15 (osv)
- QOS.CH Sarl Logback-core: \>= 0.1, \<= 1.3.14; \>= 1.4.0, \<= 1.5.12 (cvelist)

## Mitigation

- Upgrade ch.qos.logback:logback-core to one of 1.5.13, 1.3.15 (or later in the same release line).
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-12798. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-12798.md
Affected: ch.qos.logback:logback-core >= 1.4.0, < 1.5.13
Fixed in: 1.5.13, 1.3.15

Steps:
1. Search this machine and project for ch.qos.logback:logback-core (Maven), QOS.CH Sarl Logback-core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-12798 being exploited?

There is no confirmed exploitation: CVE-2024-12798 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-12798?

Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

ch.qos.logback:logback-core \>= 1.4.0, \< 1.5.13.

### Is there a fix for CVE-2024-12798?

Yes. Fixed in 1.5.13, 1.3.15. Upgrade ch.qos.logback:logback-core to one of 1.5.13, 1.3.15 (or later in the same release line). Vendor 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.

### How do I check if I'm affected by CVE-2024-12798?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-12798>
- patch: <https://github.com/qos-ch/logback/commit/2cb6d520df7592ef1c3a198f1b5df3c10c93e183>
- other: <https://logback.qos.ch/news.html#1.5.13>
- other: <https://logback.qos.ch/news.html#1.3.15>
- other: <https://github.com/qos-ch/logback>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-12798>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pr98-23f8-jwxv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-12798> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-12798>
