CVE-2026-78002
massUnauthenticated Heap Buffer Overflow in rsyslog RainerScript replace()
rsyslog contains a heap buffer overflow (CWE-131) in the RainerScript replace() function, caused by an incorrect buffer size calculation during string replacement that leads to memory corruption. An unauthenticated remote attacker can trigger the flaw by sending specially crafted syslog messages to a system whose rsyslog configuration invokes replace() on message content. Successful exploitation crashes the rsyslog daemon and causes denial of service; the CVSS vector (C:N/I:N/A:H) indicates no confidentiality or integrity impact. Systems running rsyslog that process remotely supplied messages through templates, rulesets, or filters using the replace() function are affected, while configurations that never call the function do not reach the vulnerable code path. No exploitation is currently known: there is no public proof-of-concept, the flaw is not in CISA KEV, and EPSS estimates only a ~0.6% probability of exploitation in the next 30 days (47th percentile).
What to do: Audit rsyslog configurations (templates, rulesets, and action filters) for use of the replace() function; if present, apply the fixed rsyslog package from your distribution or upstream as soon as an advisory with fixed versions is published, since the data does not yet specify fixed version numbers. Until patching, restrict access to syslog ports (UDP/TCP 514 and RELP) to trusted senders with firewall rules so only authorized sources can reach the daemon. Monitor rsyslog for unexpected restarts or crashes, which would indicate attempted exploitation.
| rsyslog project (Adiscon) rsyslog (RainerScript replace() function) | — |
| Red Hat rsyslog as shipped in Red Hat products (Red Hat is the assigning CNA) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
A flaw was found in rsyslog. An unauthenticated remote attacker can trigger a heap buffer overflow in the RainerScript `replace()` function by sending specially crafted syslog messages. This vulnerability arises from an incorrect buffer size calculation during string replacement, causing memory corruption. Successful exploitation can lead to a denial of service (DoS) for the affected system.
- Weakness
- CWE-131
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
In the news0 stories
No ingested article mentions this CVE yet.