The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-12798

CVE-2024-12798: Logback-Core RCE Vulnerability

CVE-2024-12798 is a remote code execution vulnerability in QOS.CH logback-core affecting versions 0.1 to 1.3.14 and 1.4.0 to 1.5.12. Attackers can exploit JaninoEventEvaluator to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: January 28, 2026

CVE-2024-12798 Overview

CVE-2024-12798 is an Arbitrary Code Execution (ACE) vulnerability affecting QOS.CH logback-core, a widely used logging framework in Java applications. The vulnerability exists in the JaninoEventEvaluator extension and allows attackers to execute arbitrary code by compromising an existing logback configuration file or by injecting a malicious environment variable before program execution.

The attack requires existing privileges on the target system. A successful exploitation can occur through two primary vectors: gaining write access to an existing logback configuration file, or injecting a malicious environment variable that points to a malicious configuration file. Both scenarios require the attacker to have some level of pre-existing access to the system.

Critical Impact

Successful exploitation allows attackers to execute arbitrary code on affected Java applications, potentially leading to complete system compromise, data exfiltration, or lateral movement within the network.

Affected Products

  • QOS.CH logback-core versions 0.1 to 1.3.14
  • QOS.CH logback-core versions 1.4.0 to 1.5.12
  • Java applications utilizing vulnerable logback-core versions

Discovery Timeline

  • 2024-12-19 - CVE-2024-12798 published to NVD
  • 2025-01-03 - Last updated in NVD database

Technical Details for CVE-2024-12798

Vulnerability Analysis

This vulnerability is classified as CWE-917 (Improper Neutralization of Special Elements used in an Expression Language Statement), commonly known as Expression Language Injection. The JaninoEventEvaluator component in logback-core provides functionality to evaluate Java expressions within logging configurations, which can be abused when an attacker controls the configuration content.

The attack surface is local, requiring the attacker to either have write access to configuration files or the ability to manipulate environment variables before the Java application starts. This pre-requisite reduces the likelihood of opportunistic exploitation but increases risk in environments where configuration management is weak or where attackers have already established a foothold.

Root Cause

The root cause lies in the JaninoEventEvaluator extension's handling of expressions within logback configuration files. When processing configuration data, the evaluator compiles and executes Java expressions without adequate restrictions, allowing malicious code execution when the configuration source is compromised. The trust placed in configuration files as a legitimate source of instructions creates an avenue for code execution when file integrity is not maintained.

Attack Vector

The vulnerability requires local access and operates through configuration file manipulation. An attacker with write access to a logback configuration file (typically logback.xml or logback-groovy.xml) can inject malicious Java code that will be executed when the application loads or reloads its logging configuration.

Alternatively, attackers can set environment variables such as LOGBACK_CONFIGURATION_FILE to point to a malicious configuration file under their control. This method requires the ability to modify the application's execution environment before startup.

The exploitation chain involves:

  1. Gaining write access to configuration files or environment variable control
  2. Injecting malicious Java expressions into the JaninoEventEvaluator configuration
  3. Triggering configuration loading or reloading by the target application
  4. Achieving arbitrary code execution within the application's security context

Detection Methods for CVE-2024-12798

Indicators of Compromise

  • Unexpected modifications to logback configuration files (logback.xml, logback-groovy.xml, or logback.groovy)
  • Suspicious environment variables pointing to non-standard configuration file locations
  • Unusual JaninoEventEvaluator entries in configuration files containing complex Java expressions
  • Application logs showing unexpected code execution or compilation errors during configuration loading

Detection Strategies

  • Monitor file integrity of logback configuration files using file integrity monitoring (FIM) solutions
  • Audit environment variable changes, particularly LOGBACK_CONFIGURATION_FILE and related configuration variables
  • Implement application-level logging to detect configuration reload events from unexpected sources
  • Scan configuration files for suspicious patterns such as Runtime.getRuntime().exec() or reflection-based method calls

Monitoring Recommendations

  • Enable file access auditing on directories containing logback configuration files
  • Configure SentinelOne to monitor for process execution chains originating from Java applications that appear anomalous
  • Implement change management alerting for logging configuration modifications
  • Review application startup scripts for unauthorized environment variable injections

How to Mitigate CVE-2024-12798

Immediate Actions Required

  • Upgrade logback-core to version 1.3.15 or later for the 1.3.x branch
  • Upgrade logback-core to version 1.5.13 or later for the 1.5.x branch
  • Audit existing logback configuration files for malicious or suspicious content
  • Restrict write permissions on logback configuration files to authorized administrators only
  • Review environment variable settings in application deployment configurations

Patch Information

QOS.CH has released patched versions addressing this vulnerability. Organizations should upgrade to the following fixed versions:

  • For logback-core 1.3.x series: Upgrade to version 1.3.15 or later (Logback Release Notes 1.3.15)
  • For logback-core 1.5.x series: Upgrade to version 1.5.13 or later (Logback Release Notes 1.5.13)

Dependency management tools such as Maven or Gradle should be updated to pull the fixed versions. Organizations using transitive dependencies should verify that all dependent libraries are also updated.

Workarounds

  • Implement strict file system permissions limiting configuration file write access to root or application service accounts only
  • Disable or remove the JaninoEventEvaluator component if not required by your logging configuration
  • Validate and sanitize environment variables before application startup using secure deployment scripts
  • Use configuration file signing or integrity verification to detect unauthorized modifications
  • Deploy applications in containerized environments with read-only file systems for configuration directories
bash
# Configuration example: Restrict permissions on logback configuration files
chmod 640 /path/to/application/logback.xml
chown root:appgroup /path/to/application/logback.xml

# Verify no suspicious JaninoEventEvaluator entries exist
grep -r "JaninoEventEvaluator" /path/to/application/*.xml

# Check for suspicious environment variables
env | grep -i logback

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLogback

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:L/U:Clear
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityLow
  • CWE References
  • CWE-917
  • Technical References
  • Logback Release Notes 1.3.15

  • Logback Release Notes 1.5.13
  • Related CVEs
  • CVE-2026-1225: QOS.CH Logback-Core RCE Vulnerability

  • CVE-2024-12801: QOS.CH Logback SSRF Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English