{"id":"GHSA-pff6-5vr4-hf2h","aliases":["DHI-4dol-jknq-f6vq-sqar"],"status":"published","description":"## Summary\n\nThe optional `imjournal` input uses `sd_journal_set_data_threshold(maxMessageSize)` when reading journal entries, but libsystemd documents that threshold as a hint and may return larger objects. imjournal does not apply its own per-field or per-entry limit after reading the data.\n\nA local process permitted to write to journald can submit oversized `SYSLOG_IDENTIFIER`, `SYSLOG_PID`, `MESSAGE`, or other non-underscore fields. imjournal copies the complete identifier and PID into the syslog tag and copies every journal field into the message's `$!` JSON tree. Core raw-message truncation occurs only after imjournal has allocated and copied the complete `MESSAGE`, and it does not truncate the tag or JSON properties. The imjournal rate limiter counts messages and is invoked after these objects are built, so it does not bound bytes or peak allocation.\n\nAffected deployments load `imjournal`. Memory pressure needs no particular output template. Disk growth additionally requires a template that writes the tag or structured fields; the default file format writes the tag. Forwarding templates may also transmit an oversized tag.\n\nThe attacker must already have local journal-write capability. Trusted `_COMM` and `_PID` fallback fields are not the oversized attacker-controlled path. Journald's version-dependent field, entry, transport, and storage limits still apply, but those limits are much larger than rsyslog's normal `maxMessageSize`, and journald storage quotas do not cap rsyslog's root-owned output files.\n\n## Reproduction and impact\n\nOn rsyslog main `a6c1f4023df4f4e783158ea3837796dc0ef45e4e`, a live unprivileged submission on systemd 255 containing a 1 MiB identifier, 64 KiB PID, and 1 MiB additional field was accepted. imjournal constructed a 1,114,115-byte tag while configured with `maxMessageSize=8192`; the structured field remained 1 MiB.\n\nA production-like audit using five 40 MB identifiers produced a 200,000,205-byte default output file and 438 MB peak rsyslog RSS. A separate entry with a 60 MB `MESSAGE` and a 60 MB additional field retained both complete values in `$!` while `$msg` was limited to 8,096 bytes. No memory corruption was observed.\n\nRepeated entries can fill an rsyslog output filesystem, exhaust rsyslog memory, or disrupt log collection. Large tag and JSON objects persist while queued and may accumulate behind slow or blocked actions; without queueing, much of the allocation is per-message and transient. The impact is availability only.\n\n## Affected configuration\n\n- rsyslog loads `imjournal` and reads a journal writable by the local attacker.\n- Disk impact requires an action/template that emits the tag or `$!` fields; default file output emits the tag.\n- Memory pressure occurs during ingestion regardless of the selected output template.\n\nThe issue has existed since imjournal first shipped the affected tag and all-field JSON paths in rsyslog 7.3.11. Current main remained affected when tested. The absence of an upper bound in the affected-version field means no patched version has yet been identified; it does not claim that unsupported historical branches receive fixes.\n\n## Severity\n\nMedium, CVSS 3.1 5.5: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`.\n\nThe local access prerequisite and optional imjournal deployment keep the issue below High severity. High availability impact reflects the demonstrated ability, under repetition or queueing, to exhaust the logging service's memory or output filesystem.\n\n## Weakness classification\n\nPrimary: CWE-770 (Allocation of Resources Without Limits or Throttling).\n\nSecondary: CWE-400 (Uncontrolled Resource Consumption).\n\n## Remediation direction\n\nApply explicit limits at the libsystemd-to-rsyslog boundary: cap identifier and PID before tag construction, cap each copied structured value, and impose a total per-entry structured-data budget. Do not rely on the libsystemd threshold. Handle truncation deterministically and test oversized identifier, PID, `MESSAGE`, an arbitrary field, and many-field totals.\n\nTag-size remediation should be coordinated technically with the separate control-character issue in `GHSA-3w8v-2pjp-5r8p`, because the findings share a construction site. The findings, advisories, CVEs, credits, and notifications remain distinct.\n\n## Credit and AI assistance disclosure\n\nFound and reported by Rainer Gerhards during an internal imjournal security audit.\n\nAI assistance was used during source review, test-harness development, evidence synthesis, and advisory drafting. The source analysis, live unprivileged journald reproduction, affected-version history, severity decision, and final advisory were reviewed and approved by the maintainer. AI assistance is acknowledged textually; no GitHub identity is claimed for an AI system.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2026-12-02T14:27:24Z","modified":"2026-12-04T16:45:13Z","affected":[{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"ascender-25","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"25.6.3-0"}]}],"versions":["25.6.3-0","25.6.3-1","25.6.3-10","25.6.3-11","25.6.3-12","25.6.3-2","25.6.3-3","25.6.3-4","25.6.3-5","25.6.3-6","25.6.3-7","25.6.3-8","25.6.3-9"]}],"references":[{"url":"https://scout.docker.com/v/DHI-4dol-jknq-f6vq-sqar","tags":["advisory"]},{"url":"https://github.com/rsyslog/rsyslog/security/advisories/GHSA-pff6-5vr4-hf2h","tags":["advisory"]}],"sources":{"osv":[{"id":"DHI-4dol-jknq-f6vq-sqar","upstream":["GHSA-pff6-5vr4-hf2h"],"title":"## Summary","description":"## Summary\n\nThe optional `imjournal` input uses `sd_journal_set_data_threshold(maxMessageSize)` when reading journal entries, but libsystemd documents that threshold as a hint and may return larger objects. imjournal does not apply its own per-field or per-entry limit after reading the data.\n\nA local process permitted to write to journald can submit oversized `SYSLOG_IDENTIFIER`, `SYSLOG_PID`, `MESSAGE`, or other non-underscore fields. imjournal copies the complete identifier and PID into the syslog tag and copies every journal field into the message's `$!` JSON tree. Core raw-message truncation occurs only after imjournal has allocated and copied the complete `MESSAGE`, and it does not truncate the tag or JSON properties. The imjournal rate limiter counts messages and is invoked after these objects are built, so it does not bound bytes or peak allocation.\n\nAffected deployments load `imjournal`. Memory pressure needs no particular output template. Disk growth additionally requires a template that writes the tag or structured fields; the default file format writes the tag. Forwarding templates may also transmit an oversized tag.\n\nThe attacker must already have local journal-write capability. Trusted `_COMM` and `_PID` fallback fields are not the oversized attacker-controlled path. Journald's version-dependent field, entry, transport, and storage limits still apply, but those limits are much larger than rsyslog's normal `maxMessageSize`, and journald storage quotas do not cap rsyslog's root-owned output files.\n\n## Reproduction and impact\n\nOn rsyslog main `a6c1f4023df4f4e783158ea3837796dc0ef45e4e`, a live unprivileged submission on systemd 255 containing a 1 MiB identifier, 64 KiB PID, and 1 MiB additional field was accepted. imjournal constructed a 1,114,115-byte tag while configured with `maxMessageSize=8192`; the structured field remained 1 MiB.\n\nA production-like audit using five 40 MB identifiers produced a 200,000,205-byte default output file and 438 MB peak rsyslog RSS. A separate entry with a 60 MB `MESSAGE` and a 60 MB additional field retained both complete values in `$!` while `$msg` was limited to 8,096 bytes. No memory corruption was observed.\n\nRepeated entries can fill an rsyslog output filesystem, exhaust rsyslog memory, or disrupt log collection. Large tag and JSON objects persist while queued and may accumulate behind slow or blocked actions; without queueing, much of the allocation is per-message and transient. The impact is availability only.\n\n## Affected configuration\n\n- rsyslog loads `imjournal` and reads a journal writable by the local attacker.\n- Disk impact requires an action/template that emits the tag or `$!` fields; default file output emits the tag.\n- Memory pressure occurs during ingestion regardless of the selected output template.\n\nThe issue has existed since imjournal first shipped the affected tag and all-field JSON paths in rsyslog 7.3.11. Current main remained affected when tested. The absence of an upper bound in the affected-version field means no patched version has yet been identified; it does not claim that unsupported historical branches receive fixes.\n\n## Severity\n\nMedium, CVSS 3.1 5.5: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`.\n\nThe local access prerequisite and optional imjournal deployment keep the issue below High severity. High availability impact reflects the demonstrated ability, under repetition or queueing, to exhaust the logging service's memory or output filesystem.\n\n## Weakness classification\n\nPrimary: CWE-770 (Allocation of Resources Without Limits or Throttling).\n\nSecondary: CWE-400 (Uncontrolled Resource Consumption).\n\n## Remediation direction\n\nApply explicit limits at the libsystemd-to-rsyslog boundary: cap identifier and PID before tag construction, cap each copied structured value, and impose a total per-entry structured-data budget. Do not rely on the libsystemd threshold. Handle truncation deterministically and test oversized identifier, PID, `MESSAGE`, an arbitrary field, and many-field totals.\n\nTag-size remediation should be coordinated technically with the separate control-character issue in `GHSA-3w8v-2pjp-5r8p`, because the findings share a construction site. The findings, advisories, CVEs, credits, and notifications remain distinct.\n\n## Credit and AI assistance disclosure\n\nFound and reported by Rainer Gerhards during an internal imjournal security audit.\n\nAI assistance was used during source review, test-harness development, evidence synthesis, and advisory drafting. The source analysis, live unprivileged journald reproduction, affected-version history, severity decision, and final advisory were reviewed and approved by the maintainer. AI assistance is acknowledged textually; no GitHub identity is claimed for an AI system.\n","status":"published","published":"2026-12-02T14:27:24Z","modified":"2026-12-04T16:45:13.983696785Z","updated_at":"2026-12-04T17:18:58.764469Z"}]}}
