Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADk+mPCw+3ptb3xpq8XxQ+Zt4r+VLAkq_jb1G0K5vG+VLarfwQ@mail.gmail.com>
Date: Tue, 1 Dec 2026 11:30:18 -0500
From: rgerhards@...scon.com
To: oss-security@...ts.openwall.com
Subject: rsyslog: Messages that rsyslog rejects (UDP sender ACL, parser
 errors) are still processed and written (GHSA-gp9m-f4cv-wxvg)

Hello,

rsyslog has published the following security advisory(ies).

Fix: https://github.com/rsyslog/rsyslog/pull/8148

GHSA-gp9m-f4cv-wxvg: Messages that rsyslog rejects (UDP sender ACL,
parser errors) are still processed and written
Advisory: https://github.com/rsyslog/rsyslog/security/advisories/GHSA-gp9m-f4cv-wxvg

### Summary

rsyslog marks a message as discarded when it should not be accepted,
for example because the sender is not on the allowed-sender list of a
UDP input, or because no configured parser accepts it. Since 8.1.0 the
rule engine did not check that mark: such messages were still
processed by the ruleset and written to all actions.

### Impact

1. **UDP allowed-sender lists with hostname or wildcard entries are
not enforced.** If `$AllowedSender UDP, ...` or the `allowedSender`
parameter of imudp contains an entry such as `*.example.net`, every
sender is accepted, even if the list also contains IP entries. Lists
that contain only IP addresses and networks are enforced correctly.
2. **Rejected messages are written anyway, in the default
configuration since 8.2610.0.** A specially crafted UDP or TCP record
that the input stage rejects is written to the log, including raw
control bytes and additional lines with an attacker-chosen timestamp,
host and program name. This can be used to forge log entries. Parser
policies such as a strict parser chain or `headerless.drop="on"` do
not stop messages from being written either.
3. **Out-of-bounds access.** For such a message, templates that use
`%msg%` read one byte before the message buffer. With `mmutf8fix` in
`mode="controlcharacters"` that byte is overwritten, which crashes
rsyslogd (denial of service). No other effect than a crash was found
on 64-bit systems.

Only systems that accept messages from untrusted senders are affected.

### Workarounds

- Use only IP addresses and networks in UDP allowed-sender lists, and
enforce access with a packet filter (recommended in any case, because
UDP source addresses can be spoofed).
- Set `global(parser.supportCompressionExtension="off")` unless you
need the legacy compressed-message format. This removes the
default-configuration trigger of item 2 and 3. It does not help if
your parser chain rejects messages on purpose (strict parser list,
`headerless.drop`).
- Do not use `mmutf8fix mode="controlcharacters"` on inputs that
receive messages from untrusted senders.

### Fix

The fix is available in the rsyslog daily stable build of 2026-12-01
and later, and will be part of the next scheduled stable release
(8.2612.0). Upgrade to the daily stable build or apply the patch.
Rejected messages are now discarded, and imudp enforces hostname
entries of its allowed-sender lists itself and fails closed when the
sender cannot be resolved.

### Credits

Found during an internal security audit by Rainer Gerhards of Adiscon
with Claude Code.

Affected: rsyslog >= 8.1.0, <= 8.2610.0
Fixed in: 2026-12-01 daily stable
Severity: Medium, CVSS 3.1 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L)

Regards,
the rsyslog security team
(sent automatically by the rsyslog release system)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.