<Vulnerability name="CVE-2026-93404">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-11-11T12:00:00</PublicDate>
    <Bugzilla id="2569362" url="https://bugzilla.redhat.com/show_bug.cgi?id=2569362" xml:lang="en:us">
rsyslog: rsyslog omclickhouse SQL injection
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>8.1</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-89</CWE>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in rsyslog. The built-in ClickHouse output templates fail to properly escape backslash characters when formatting Structured Query Language (SQL) queries. An attacker capable of submitting crafted log messages routed to an affected ClickHouse action can exploit this issue to alter executed SQL commands, potentially leading to unauthorized database modification or information disclosure.
    </Details>
    <Statement xml:lang="en:us">
Red Hat has rated this vulnerability as Important because a sender capable of submitting crafted log events can inject arbitrary SQL commands into the backend database, potentially compromising data integrity and confidentiality. The flaw specifically affects instances configured with the ClickHouse output module (omclickhouse), which is not active in default rsyslog installations and must be explicitly configured in deployment rulesets. Deployments that do not forward log messages to ClickHouse or that only ingest logs from trusted local sources have significantly reduced exposure.
    </Statement>
    <Mitigation xml:lang="en:us">
To mitigate this issue, disable the ClickHouse output module or comment out all action directives utilizing 'omclickhouse' within /etc/rsyslog.conf and /etc/rsyslog.d/.

After modifying the configuration, restart the rsyslog service:

    systemctl restart rsyslog

Warning: Restarting the rsyslog service briefly interrupts log processing, and disabling the omclickhouse action stops forwarding log records to the ClickHouse database.

If forwarding cannot be disabled, restrict remote access to rsyslog ingestion ports (such as UDP/TCP port 514) to trusted network hosts using firewall rules to prevent unauthorized message submission.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rsyslog</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:6">
        <ProductName>Red Hat Enterprise Linux 6</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>rsyslog</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:6">
        <ProductName>Red Hat Enterprise Linux 6</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>rsyslog7</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>rsyslog</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rsyslog</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>rhel9/rsyslog</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Affected</FixState>
        <PackageName>rsyslog</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-93404
https://nvd.nist.gov/vuln/detail/CVE-2026-93404
    </References>
</Vulnerability>