Skip to main content
Vulnerability Database/CVE-2026-92709

CVE-2026-92709: Rsyslog omfile Path Traversal Vulnerability

CVE-2026-92709 is a path traversal vulnerability in Rsyslog omfile that allows untrusted input to escape intended log directories. This article covers technical details, affected versions from 1.15.0 to 8.2610.0, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92709 Overview

CVE-2026-92709 is a path traversal vulnerability in rsyslog, a high-performance log processing system widely deployed on Linux servers. The flaw affects the omfile output module's dynaFile facility, which renders file paths from templates to support flexible log routing. When a dynaFile template incorporates untrusted input as a path component without secure-path handling, attackers can influence the rendered path and escape the operator's intended log directory. The condition is not limited to the RFC5424 HOSTNAME field; any attacker-controlled value reaching a dynaFile path component can trigger it. Affected versions span from 1.15.0 through 8.2610.0, and no public patch is available at publication time.

Critical Impact

Attackers who can inject crafted values into log fields used by dynaFile templates can write log data to arbitrary filesystem locations, enabling tampering, log injection, or privilege escalation on hosts running rsyslog.

Affected Products

  • Rsyslog versions 1.15.0 through 8.2610.0
  • Deployments using omfile with dynaFile templates sourced from untrusted input
  • Any downstream Linux distribution shipping an affected rsyslog build

Discovery Timeline

  • 2026-10-22 - CVE-2026-92709 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-92709

Vulnerability Analysis

Rsyslog's omfile output module supports dynaFile templates, which render output file paths at message-processing time. This design intentionally allows operators to route logs into different directories or generate per-source file names based on message properties.

The weakness arises when the template consumes a value that an attacker can influence, such as a remote hostname, structured data field, or application-supplied token. If that value contains path separators or traversal sequences, the rendered path can resolve outside the configured log directory. The issue is classified as CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Because rsyslog typically runs with elevated privileges to bind syslog sockets and write to /var/log, successful exploitation lets an attacker write log content to sensitive filesystem locations. Candidate targets include cron directories, web roots, and configuration files parsed by other daemons.

Root Cause

The root cause is the absence of mandatory secure-path handling in dynaFile template rendering. Rsyslog treats template-generated strings as trusted paths and does not canonicalize or confine them to a configured base directory. Operators must manually sanitize template inputs, and this requirement is easy to overlook in production configurations.

Attack Vector

An attacker sends log events containing crafted field values such as ../../etc/cron.d/payload to a rsyslog instance that incorporates those values into a dynaFile path. The template renders the traversal, and omfile opens or creates the resulting file. The attack is network-reachable wherever rsyslog accepts remote syslog traffic, though exploitation complexity is elevated because it depends on the specific template configuration deployed by the target.

See the rsyslog GitHub Security Advisory GHSA-xmp9-244p-5ggv for maintainer guidance.

Detection Methods for CVE-2026-92709

Indicators of Compromise

  • Log files appearing outside the configured rsyslog output directory, especially in /etc, /var/spool/cron, or web document roots
  • Syslog messages containing path traversal sequences such as ../ or encoded variants in HOSTNAME, APP-NAME, or structured data fields
  • Unexpected file creation events owned by the syslog or root user outside standard log paths

Detection Strategies

  • Audit rsyslog.conf and files under /etc/rsyslog.d/ for dynaFile templates referencing properties such as %HOSTNAME%, %fromhost%, %programname%, or %msg% without sanitization
  • Enable Linux auditd rules on file creation syscalls (openat, creat) initiated by the rsyslog process to flag writes outside expected log directories
  • Correlate remote syslog ingress with filesystem write telemetry to identify path escapes

Monitoring Recommendations

  • Forward auditd and file integrity monitoring events into a SIEM for behavioral correlation against the rsyslog process tree
  • Alert on any new file created by rsyslog outside an allow-listed directory set
  • Review historical syslog archives for malformed HOSTNAME or tag fields containing path characters

How to Mitigate CVE-2026-92709

Immediate Actions Required

  • Inventory all rsyslog deployments and identify configurations using omfile with dynaFile templates
  • Remove or sanitize template components that reference untrusted message properties, replacing them with static paths or hash-based identifiers
  • Restrict rsyslog network inputs so only trusted sources can submit messages that reach dynaFile templates

Patch Information

At the time of publication, no fixed rsyslog release is available. Monitor the rsyslog GitHub Security Advisory GHSA-xmp9-244p-5ggv and vendor distribution channels for patch release notices covering versions after 8.2610.0.

Workarounds

  • Apply rsyslog property replacers such as secpath-replace or regex filtering to strip path separators from template inputs
  • Configure $FileCreateMode, $DirCreateMode, and $umask restrictively, and run rsyslog with a confined AppArmor or SELinux profile that limits writable paths
  • Replace dynamic path components with safer substitutes such as a sanitized hash of the untrusted value
bash
# Example: sanitize HOSTNAME before using it in a dynaFile template
# Strips path separators and traversal sequences
$template SafeHost,"%HOSTNAME:::secpath-replace%"
$template RemoteLog,"/var/log/remote/%$!safehost%/messages"
*.* ?RemoteLog

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.