GHSA-3w8v-2pjp-5r8p
Summary The optional imjournal input copies the journal fields SYSLOG_ IDENTIFIER and SYSLOG_ PID into rsyslog's syslogtag
- Scores
- UnknownNo source reports a CVSS or EPSS score yet.
- Exploitation
- UnknownNo source reports exploitation yet.
- Listed fix
- None listedNo source lists a fixed version in its version data.Check the description and references.
Overview
Summary
The optional imjournal input copies the journal fields
SYSLOG_IDENTIFIER and SYSLOG_PID into rsyslog's syslogtag. systemd-journald
does not validate these client-supplied, non-underscore fields and permits binary
field values. A local unprivileged process that can submit an entry to the
system journal can therefore place line feeds and other control bytes in the
tag. imjournal sanitizes NUL bytes in these values, but does not neutralize
other control bytes; the message sanitizer applies to MESSAGE, not the tag.
When a configured action renders %syslogtag% into a line-oriented format, one
journal entry can produce multiple physical log lines. With the built-in
forward format and default LF-delimited TCP framing, an embedded LF can also end
the first frame. A downstream syslog receiver then parses the remaining bytes as
an independent record with attacker-chosen PRI, timestamp, short hostname, and
message body.
The trusted _PID fallback is derived from sender credentials and is not a
client-controlled injection source. _COMM is also a trusted journald field.
Although a process may choose its task name, LF injection through _COMM was not
reproduced on systemd 255 and is not part of the confirmed vector.
Affected configurations and prerequisites
- rsyslog loads
imjournaland consumes the system journal. - The attacker is a local low-privilege process permitted to submit journal entries. This is normally available through the native journal socket.
- The output template renders the tag without control-character escaping. The built-in file and forward formats do so.
- Creation of a separate downstream record additionally requires a
delimiter-based transport/receiver path, such as the default LF-delimited
omfwdTCP framing demonstrated here. Octet-counted framing or a safely escaping template changes that effect.
Impact
This is a log-integrity vulnerability. A local user can make one journal entry appear as multiple local file lines and, under the demonstrated default TCP forwarding path, as a neighboring syslog record at a collector. The injected record can claim a different facility/severity, timestamp, short hostname, and program/message text.
Local clients can already submit arbitrary message text and plausible program identifiers. The additional security effect is crossing the record boundary and forging metadata that would normally be supplied by rsyslog's output template. No confidentiality, memory-safety, log-deletion, or availability impact was demonstrated.
Technical details
On affected versions, readjournal() obtains SYSLOG_IDENTIFIER and
SYSLOG_PID, passes each through sanitizeValue(), and assembles the tag with
asprintf(). sanitizeValue() replaces only NUL. enqMsg() calls
parser.SanitizeMsg() for the raw MESSAGE and then separately calls
MsgSetTAG() with the unsafely assembled tag.
On fresh public main a6c1f4023df4f4e783158ea3837796dc0ef45e4e, a UID-1000
process submitted one live journal entry containing LF in both fields. The
default file template produced multiple physical lines. A fresh-main sender and
receiver using default TCP forwarding produced two receiver messages from that
single entry; the second raw frame began:
<34>Nov 14 00:00:00 forge CODEX-GHSA-3W8V-20261114
Affected versions
The identifier-to-tag path was introduced by commit
289e54fdb5d4ebf722425982ff54d7c96132e306 and first appeared in tag
v7.3.11 (first stable series release v7.4.0). The PID component was added by
1e3167f227e8e5f94f8c103031ed4fd01731c968. The NUL-only sanitizer added in
e33c8ffaeca79f1860ce048cf0addcdc23d91c22 did not address other control
bytes. The behavior remains present on current public main.
Resolution and workarounds
Update to the patched disclosure-day daily-stable build listed in this advisory when available. The fix neutralizes control bytes before journal-derived identifier and PID values are assembled into the tag and adds regression tests for both fields.
Until then, operators can reduce exposure by using an output template that escapes or replaces control bytes in tag-derived properties and by using octet-counted forwarding where supported. Restricting which local processes may submit journal entries also reduces exposure. Octet-counted forwarding prevents the demonstrated frame split but does not by itself make multiline local file output safe.
Acknowledgements
Found and reported by Rainer Gerhards during an internal imjournal security review. The internal audit, reproducer preparation, and draft text used AI assistance; Rainer Gerhards retains sole ownership of the maintainer validation and disclosure.
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
ascender-25Docker Hardened Images:Debian:13 | 25.6.3-0 and later, plus listed versions 25.6.3-125.6.3-1025.6.3-1125.6.3-1225.6.3-2 Show 7 more versionsShow less25.6.3-325.6.3-425.6.3-525.6.3-625.6.3-725.6.3-825.6.3-9 | None listed |
Sources
OSVDHI-2g6p-lnna-qki2-4jf4No score
### Summary
Summary
The optional imjournal input copies the journal fields
SYSLOG_IDENTIFIER and SYSLOG_PID into rsyslog's syslogtag. systemd-journald
does not validate these client-supplied, non-underscore fields and permits binary
field values. A local unprivileged process that can submit an entry to the
system journal can therefore place line feeds and other control bytes in the
tag. imjournal sanitizes NUL bytes in these values, but does not neutralize
other control bytes; the message sanitizer applies to MESSAGE, not the tag.
When a configured action renders %syslogtag% into a line-oriented format, one
journal entry can produce multiple physical log lines. With the built-in
forward format and default LF-delimited TCP framing, an embedded LF can also end
the first frame. A downstream syslog receiver then parses the remaining bytes as
an independent record with attacker-chosen PRI, timestamp, short hostname, and
message body.
The trusted _PID fallback is derived from sender credentials and is not a
client-controlled injection source. _COMM is also a trusted journald field.
Although a process may choose its task name, LF injection through _COMM was not
reproduced on systemd 255 and is not part of the confirmed vector.
Affected configurations and prerequisites
- rsyslog loads
imjournaland consumes the system journal. - The attacker is a local low-privilege process permitted to submit journal entries. This is normally available through the native journal socket.
- The output template renders the tag without control-character escaping. The built-in file and forward formats do so.
- Creation of a separate downstream record additionally requires a
delimiter-based transport/receiver path, such as the default LF-delimited
omfwdTCP framing demonstrated here. Octet-counted framing or a safely escaping template changes that effect.
Impact
This is a log-integrity vulnerability. A local user can make one journal entry appear as multiple local file lines and, under the demonstrated default TCP forwarding path, as a neighboring syslog record at a collector. The injected record can claim a different facility/severity, timestamp, short hostname, and program/message text.
Local clients can already submit arbitrary message text and plausible program identifiers. The additional security effect is crossing the record boundary and forging metadata that would normally be supplied by rsyslog's output template. No confidentiality, memory-safety, log-deletion, or availability impact was demonstrated.
Technical details
On affected versions, readjournal() obtains SYSLOG_IDENTIFIER and
SYSLOG_PID, passes each through sanitizeValue(), and assembles the tag with
asprintf(). sanitizeValue() replaces only NUL. enqMsg() calls
parser.SanitizeMsg() for the raw MESSAGE and then separately calls
MsgSetTAG() with the unsafely assembled tag.
On fresh public main a6c1f4023df4f4e783158ea3837796dc0ef45e4e, a UID-1000
process submitted one live journal entry containing LF in both fields. The
default file template produced multiple physical lines. A fresh-main sender and
receiver using default TCP forwarding produced two receiver messages from that
single entry; the second raw frame began:
<34>Nov 14 00:00:00 forge CODEX-GHSA-3W8V-20261114
Affected versions
The identifier-to-tag path was introduced by commit
289e54fdb5d4ebf722425982ff54d7c96132e306 and first appeared in tag
v7.3.11 (first stable series release v7.4.0). The PID component was added by
1e3167f227e8e5f94f8c103031ed4fd01731c968. The NUL-only sanitizer added in
e33c8ffaeca79f1860ce048cf0addcdc23d91c22 did not address other control
bytes. The behavior remains present on current public main.
Resolution and workarounds
Update to the patched disclosure-day daily-stable build listed in this advisory when available. The fix neutralizes control bytes before journal-derived identifier and PID values are…
- Record
DHI-2g6p-lnna-qki2-4jf4- Updated
- 2026-12-04
The JSON record also has the rest of 1 source description.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages | OSV | |
| First indexed | OSV |
Upstream dates may differ.