{"id":"DHI-4lbj-ayeb-f5px-2jax","summary":"## Summary","details":"## Summary\r\n\r\nrsyslog's `omfile` `dynaFile` facility intentionally allows templates to generate flexible output paths. This supports valid deployments that route logs into different directories or use dynamically generated file names.\r\n\r\nA deployment becomes unsafe when a `dynaFile` template uses a value influenced by untrusted input as a path component without explicit secure-path handling. In that configuration, the rendered path can escape the operator's intended log directory.\r\n\r\nThis is not limited to the RFC5424 `HOSTNAME` field. Any untrusted value that reaches a `dynaFile` path component can create the condition.\r\n\r\n## Impact\r\n\r\nAn attacker who can influence such a value may cause rsyslog to create or append to files outside the intended output directory, subject to rsyslog's effective privileges and host confinement.\r\n\r\nThe practical result depends on the deployment. Mandatory access controls, systemd sandboxing, filesystem permissions, the configured input modules, and the selected output template can all limit or prevent impact. A code-execution outcome requires additional, deployment-specific conditions and is not representative of default distribution configurations.\r\n\r\nDefault Debian and Ubuntu configurations do not enable a network input and a `dynaFile` action of this form. The affected configuration must be explicitly deployed.\r\n\r\n## Affected configurations\r\n\r\nThe condition requires all of the following:\r\n\r\n- An `omfile` action using `dynaFile`.\r\n- A template that incorporates attacker-controlled or otherwise untrusted input into a path component.\r\n- No explicit `securepath`, `secpath-drop`, or `secpath-replace` handling for that input.\r\n- An attacker who can influence the relevant input.\r\n- Effective rsyslog privileges and host confinement that permit a write outside the intended directory.\r\n\r\n## Affected versions\r\n\r\nrsyslog versions beginning with 1.15.0 include the flexible `dynaFile` behavior and can be affected when configured as described above.\r\n\r\nNo version is currently listed as fully patched. A fixed release will be recorded here when the containment work is released.\r\n\r\n## Mitigation\r\n\r\nExplicit secure-path handling has always been the documented and recommended way to use untrusted values in `dynaFile` paths.\r\n\r\nThe primary action for operators is to apply explicit secure-path handling to every untrusted value used by a `dynaFile` template. Use `securepath`, `secpath-drop`, or `secpath-replace`, as appropriate for the intended naming scheme.\r\n\r\nrsyslog 8.2606.0 introduced compatibility secure-default modes to support this migration:\r\n\r\n- `global(compatibility.defaults.secure=\"warn\")` preserves the historical behavior but emits startup warnings for affected `dynaFile` templates.\r\n- `global(compatibility.defaults.secure=\"strict\")` defaults fields without explicit secure-path handling to `secpath-replace`.\r\n- `global(compatibility.defaults.secure=\"backward-compatible\")` preserves the historical behavior silently. This remains the default to avoid breaking existing configurations that intentionally depend on flexible path generation.\r\n\r\nOperators should use `warn`, the default, to identify templates needing review, then add explicit secure-path handling or adopt `strict` where compatible Strict automatically sets the secure defaults. These explicit options are the reliable way to define which input may become part of a path.\r\n\r\nRun rsyslog with the least privileges needed and retain appropriate operating-system confinement. These controls reduce impact but do not replace secure template design.\r\n\r\n## Compatibility and remediation status\r\n\r\nThe historical flexibility of `dynaFile` is intentional and remains supported. An unconditional rejection of generated paths, or an automatic path rewrite, would break valid existing configurations, including deployments that intentionally write to multiple locations.\r\n\r\nTo still provide better security against malicious data, the patch implements a filesystem sandbox, which makes best effort to prevent escaping the configured constant filesystem prefix. rsyslog does not claim that `dynaFile` provides a complete filesystem sandbox. Reliably enforcing one across symlinks, bind mounts, races, and platform-specific filesystem behavior is substantially more complex; similar containment approaches have proven difficult to make dependable.\r\n\r\nAccordingly, the remediation focuses on preserving compatibility while making unsafe templates visible and providing a reliable secure configuration path. Operators should apply the secure-path options above rather than relying on implicit filesystem containment. The actual operator recommended option is to either use explicit escaping or run in \"strict\" security mode when the functionality is not needed.\r\n\r\n## CVSS\r\n\r\nCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (8.1 High)\r\n\r\nThis score reflects a network-reachable deployment with the required unsafe configuration and sufficient process privileges. It does not imply that default rsyslog or distribution configurations are affected.\r\n\r\n## Credit\r\n\r\nThanks to @mikecole-mg for reporting this issue and for the constructive discussion. The same thanks to @mat-mo who reported this independently a bit later.\r\n\r\nA CVE has been requested through GitHub and is pending; CVE assignment will not delay publication.","modified":"2026-11-26T13:45:08.118085175Z","published":"2026-11-26T10:03:23Z","upstream":["CVE-2026-92709"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-4lbj-ayeb-f5px-2jax"},{"type":"ADVISORY","url":"https://github.com/rsyslog/rsyslog/security/advisories/GHSA-xmp9-244p-5ggv"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-92709"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-3967.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-92709"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-3157.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-92709"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-92709"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-92709"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-92709"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-92709"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-92709"}],"affected":[{"package":{"name":"rsyslog","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/rsyslog"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.2604.0-r0"}]}],"versions":["8.2604.0-r0","8.2604.0-r1","8.2608.0-r1","8.2608.0-r2"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4lbj-ayeb-f5px-2jax.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}