REDHAT-BUG-2579556: Medium severity rsyslog Rsyslog vulnerability
subj: [vs-plain] rsyslog security issue; proposed 2026-11-17 disclosure cves: GHSA-6rqh-v5w3-r7h4 | CVE-2026-129832
Hello,
Please keep this information under embargo until the proposed public disclosure time: Tuesday, 2026-11-17 at 16:00 UTC / 17:00 CET / 11:00 EST.
rsyslog has a local denial-of-service vulnerability in imuxsock's PID rewriting path. When UsePIDFromSystem or SysSock.UsePIDFromSystem is enabled, a local sender that can write to the affected Unix datagram socket can submit a message with an empty TAG. The vulnerable fixPID() implementation searches from an invalid offset and writes before the TAG buffer. A fortified release build terminated on the demonstrated input, allowing repeated interruption of rsyslogd.
The path also requires SCMCREDENTIALS support and imuxsock's special parser. The PID-rewriting options are disabled by default. No confidentiality loss, integrity loss, or code execution has been demonstrated.
Upstream advisory: GHSA-6rqh-v5w3-r7h4 CVE status: CVE requested; assignment pending Severity: Medium, CVSS 3.1 score 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) CWE: CWE-124, Buffer Underwrite Affected versions: rsyslog >= 5.7.1 Introduction commit: c2d36c6894f7c36c2aed23c1e7ee9580c58659a7 Fix candidate: 817c4a8587536422b1b9718a94ab28d0146fec76 Planned fixed-version label: 2026-11-17 daily stable
The fix bounds the backward scan to parsed TAG bytes, appends the PID safely when the TAG is empty, preserves an existing PID and trailing-colon behavior, and retains the capacity guard. Focused regressions cover empty and nonempty TAGs, existing PID, trailing colon, and near/full capacity. The exact private candidate completed the upstream private CI matrix and Codex review with all findings resolved.
Temporary mitigation: keep UsePIDFromSystem and SysSock.UsePIDFromSystem disabled, or restrict access to the affected imuxsock Unix socket.
Credit: reported and validated by Rainer Gerhards. The original finding records AI assistance from Claude Code.
The source-only patch follows. Its SHA-256 is b0c6c98ebea5a56c9890d5b595bc1223dbdca63866055100fbf137f6ebcbb496.
Please acknowledge receipt and let us know promptly if the proposed disclosure time or a backport presents a concrete problem.
Patch #+beginsrc diff
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index e6d1ca73a8fda58c9c780a575283970bd35e221e..90529f0e13ec1fe203bfe0adba877e49d46ab99f 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -816,10 +816,13 @@ static void fixPID(uchar bufTAG, int lenTag, struct ucred cred) { lenPID = snprintf(bufPID, sizeof(bufPID), "[%lu]:", (unsigned long)cred->pid); - for (i = lenTag; i >= 0 && bufTAG[i] != '['; --i) /JUST SKIP/ + for (i = lenTag - 1; i >= 0 && bufTAG[i] != '['; --i) /JUST SKIP/ ; - if (i < 0) i = lenTag - 1; / go right at end of TAG, pid was not present (-1 for ':') / + if (i < 0) { + i = lenTag; + if (i > 0 && bufTAG[i - 1] == ':') --i; + } if (i + lenPID > CONFTAGMAXSIZE) return; / do not touch, as things would break / #+endsrc
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 817c4a8587536422b1b9718a94ab28d0146fec76 - Configuration
Keep UsePIDFromSystem and SysSock.UsePIDFromSystem disabled.
rsyslog imuxsock UsePIDFromSystem / SysSock.UsePIDFromSystem = disabled - Compensating control
Restrict access to the affected imuxsock Unix datagram socket.
Event History
Frequently Asked Questions
Are default rsyslog installations affected?
The vulnerable PID-rewriting path is disabled by default. Exposure requires UsePIDFromSystem or SysSock.UsePIDFromSystem to be enabled.
What access does an attacker need?
An attacker needs local access and the ability to write to the affected Unix datagram socket. Exploitation also requires SCM_CREDENTIALS support and imuxsock's special parser.
What is the practical impact of exploitation?
A local sender can repeatedly terminate rsyslogd, causing denial of service. No confidentiality loss, integrity loss, or code execution has been demonstrated.
What can be done if an update is not immediately available?
Disable UsePIDFromSystem and SysSock.UsePIDFromSystem if they are enabled. Restrict local access to the affected Unix datagram socket to reduce the set of potential senders.
Which versions should be reviewed?
The provided advisory identifies rsyslog versions 5.7.1 and later as affected. Review those deployments for enabled PID-rewriting options and local processes able to write to the relevant socket.