CVE Database›Document archive›CVE-2026-104721

CVE-2026-104721

ch.qos.logback/logback-classic: logback-classic: Arbitrary file write via path traversal in MDC discriminator

Loading…

Severity

Moderate

Red Hat Product Security

5.6

CVSS 3.1

Review impact separately from score.

Published · October 2, 2026

Updated · November 3, 2026

Description

A flaw was found in logback-classic. This path traversal vulnerability allows a remote attacker to create and append log files outside the intended directory. The issue occurs when an unsanitized Mapped Diagnostic Context (MDC) discriminator value flows into a nested log file path, enabling an attacker who can influence this context, such as through an HTTP request header, to manipulate the destination file location.

Statement

This flaw has a Moderate impact because applications using logback-classic may allow a remote attacker who controls an MDC value, such as through an HTTP header, to create or append log files outside the intended directory when that value is used in a nested FileAppender path.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 5.6
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory