Skip to main content

Logback-classic EUVDEUVD-2026-91633

| CVE-2026-104721 MEDIUM
Path Traversal (CWE-22)
2026-10-02 NCSC.ch GHSA-5f86-rhcp-cxm6
6.3
CVSS 4.0 · Vendor: NCSC.ch
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Java app using MDC-driven SiftingAppender
  2. Delivery
    Send HTTP request with crafted MDC header
  3. Exploit
    Traversal value flows into nested FileAppender path
  4. Execution
    Logback writes outside log directory
  5. Impact
    Create or append arbitrary files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application is configured so a FileAppender (typically within a SiftingAppender) builds its output file path from an MDC discriminator value, and that this MDC value is populated from attacker-influenced input such as an HTTP header - this is an application-specific, non-default logging configuration. The attacker must be able to set or influence that MDC/header value and the traversal sequence must survive into the resolved file path. Limiting factors: no special conditions are needed on the network side (remote, no authentication indicated by PR:N, no user interaction), but the AT:P requirement means the flaw is inert unless the specific MDC-to-file-path configuration is present; impact is confined to file creation/append outside the directory (integrity/availability), not read access or code execution.

Impact

This is a medium-severity path-traversal flaw (CWE-22) in Logback-classic, scored 6.3 by the reporter using CVSS 4.0 (AV:N/AC:L/AT:P/PR:N/UI:N with Low confidentiality, integrity and availability impact and no scope change to subsequent systems). The signals are internally consistent and point to a conditional, bounded issue rather than a top-priority emergency: the AT:P ('attack requirement present') metric and the description both make clear exploitation only works when the application is deliberately configured so that an MDC-based discriminator value feeds a nested FileAppender path - this is NOT a default configuration. There is no public exploit identified at time of analysis and no KEV listing, and EPSS was not provided in the input, so exploitation probability cannot be quantified. The impact is limited to creating and appending log files outside the intended directory (file write / integrity and availability pressure), not arbitrary code execution or data disclosure, which keeps real-world risk moderate. Note a tension to verify: the CVSS 4.0 vector asserts Low confidentiality impact (VC:L), but the described primitive is write/append-only (log file creation outside the directory) with no obvious read path - the confidentiality impact appears overstated and should be confirmed with the vendor advisory.

Exploit ScenarioDerived

A Java web application uses Logback with a SiftingAppender whose discriminator is populated from an MDC value derived from an attacker-controllable HTTP header, and that value is interpolated into a FileAppender file path. The attacker sends a request with a crafted header containing traversal sequences (e.g. '../../'), causing Logback to create and append a log file outside the intended log directory. No public exploit code was identified at time of analysis, so weaponization would require custom tooling against a specifically-configured target.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 02, 2026

Path traversal in Logback-classic (0.9.14 through 1.6.4) allows remote unauthenticated attackers to create and append log files outside the intended directory when a FileAppender path is built from an attacker-influenced MDC value, such as an HTTP header. Exploitation requires a non-default configuration where a SiftingAppender uses an MDC discriminator for the file path; no public exploit identified at time of analysis, and the vendor has released a patch in version 1.6.5. The reporter assigned a CVSS 4.0 score of 6.3, reflecting medium severity with limited integrity and availability impact.

RemediationAI

Vendor-released patch: upgrade to Logback-classic version 1.6.5, which resolves the path traversal issue, as noted in the advisory at https://logback.qos.ch/news.html#1.6.5. If upgrading is not immediately possible, avoid using attacker-controllable MDC values in FileAppender paths; specifically, do not configure a SiftingAppender with a discriminator based on an MDC key that can be influenced by external input, or sanitize such values to reject path traversal sequences (e.g., '../'). Since exploitation requires a non-default configuration, applications that do not use MDC-based SiftingAppender with FileAppender are not affected and require no action. As a compensating control, ensure that log file paths are not dynamically built from untrusted data; use fixed paths or validated, whitelisted values. Note that the independent assessment indicates no confidentiality impact, so the primary risk is unauthorized file creation/append affecting log integrity and disk availability.

Affected VersionsENISA

Logback-classic 0.9.14 ≤1.6.4
Logback-classic patch: 1.6.5

Affected Packages

euvd logback_classic no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Logback is a popular Java logging framework, and its Mapped Diagnostic Context (MDC) allows applications to store thread-local diagnostic data that can be referenced in logging patterns. The SiftingAppender can dynamically create appenders based on a discriminator value, often sourced from the MDC. When a FileAppender is nested within a SiftingAppender and its file path is constructed directly from an MDC value without sanitization, an attacker who can set that MDC value (e.g., via an HTTP header that the application maps to MDC) can inject path traversal sequences like '../' to escape the intended log directory, creating or appending files elsewhere. This is a CWE-22 path traversal flaw (improper limitation of a pathname to a restricted directory). The affected component is the logback-classic module from QOS.CH Sarl, as identified by CPE cpe:2.3:a:qos.ch_sarl:logback-classic. The vulnerability requires a specific, non-default logging configuration where the MDC value is both attacker-influenced and used in a file path; the CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) indicates network attack, unauthenticated access, but Attack Requirements: Present, meaning the vulnerable configuration must exist. The independent assessment (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L) rates integrity and availability impact as Low and confidentiality impact as None, confirming that the flaw does not allow reading files or code execution.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (NCSC.ch) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/S:P/AU:N/RE:M/U:Green
vuln.today AI 4.8 MEDIUM

Remote and unauthenticated (AV:N/PR:N) but AC:H because it depends on a specific MDC-into-FileAppender configuration; write-only primitive gives I:L/A:L and C:N (no read).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Red Hat 5.6 MEDIUM

Primary rating from Vendor (NCSC.ch).

CVSS VectorVendor: NCSC.ch

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Path-traversal vulnerability in QOS.CH Sarl Logback-classic on Java (logback-classic module) allows path-traversal vulnerability. More specifically, an MDC-based discriminator value flows unsanitized into a nested FileAppender path, letting an attacker who influences that MDC value (e.g. via an HTTP header) create and append log files outside the intended directory.

This issue affects Logback-classic: from 0.9.14 through 1.6.4.  This vulnerability is similar to CVE-2026-19880 but involves other attack techniques.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
High
Logback is a near-default logging backend across the Java/Spring Boot ecosystem
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy