Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rsyslog for openSUSE:Factory checked 
in at 2026-11-16 09:07:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rsyslog (Old)
 and      /work/SRC/openSUSE:Factory/.rsyslog.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rsyslog"

Mon Nov 16 09:07:23 2026 rev:196 rq:1397062 version:8.2608.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rsyslog/rsyslog.changes  2026-10-29 
18:18:06.084045310 +0100
+++ /work/SRC/openSUSE:Factory/.rsyslog.new.1251/rsyslog.changes        
2026-11-16 09:11:04.307342480 +0100
@@ -1,0 +2,6 @@
+Thu Nov 12 10:15:55 UTC 2026 - Thomas Blume <[email protected]>
+
+- VUL-0: CVE-2026-93404: rsyslog: omclickhouse SQL injection (bsc#1289824)
+  * add 0001-fix-CVE-2026-93404-rsyslog-omclickhouse-SQL-injectio.patch 
+
+-------------------------------------------------------------------

New:
----
  0001-fix-CVE-2026-93404-rsyslog-omclickhouse-SQL-injectio.patch

----------(New B)----------
  New:- VUL-0: CVE-2026-93404: rsyslog: omclickhouse SQL injection (bsc#1289824)
  * add 0001-fix-CVE-2026-93404-rsyslog-omclickhouse-SQL-injectio.patch 
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rsyslog.spec ++++++
--- /var/tmp/diff_new_pack.GMNPUC/_old  2026-11-16 09:11:05.420389144 +0100
+++ /var/tmp/diff_new_pack.GMNPUC/_new  2026-11-16 09:11:05.422389227 +0100
@@ -238,6 +238,7 @@
 Source20:       rsyslog-tmpfiles.conf
 Patch1:         0001-fix-RainerScript-replace-heap-buffer-overflow.patch
 Patch2:         0001-imdtls-reject-clients-that-fail-peer-verification.patch
+Patch3:         0001-fix-CVE-2026-93404-rsyslog-omclickhouse-SQL-injectio.patch
 
 # this is a dirty hack since % dir does only work for the specified directory 
and nothing above
 # but I want to be able to switch this to /etc/apparmor.d once the profiles 
received more testing

++++++ 0001-fix-CVE-2026-93404-rsyslog-omclickhouse-SQL-injectio.patch ++++++
>From a70bf0908b7ac990255fa63ef216e4e0889d6957 Mon Sep 17 00:00:00 2001
From: Thomas Blume <[email protected]>
Date: Wed, 11 Nov 2026 11:21:22 +0100
Subject: [PATCH] fix CVE-2026-93404: rsyslog: omclickhouse SQL injection
 (bsc#1289824)

---
 plugins/omclickhouse/omclickhouse.c |  2 +-
 runtime/action.c                    | 14 ++++++++++++++
 runtime/objomsr.c                   |  2 +-
 runtime/objomsr.h                   |  4 +++-
 runtime/rsconf.c                    |  2 +-
 5 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/plugins/omclickhouse/omclickhouse.c 
b/plugins/omclickhouse/omclickhouse.c
index a46adfc58..f520e4865 100644
--- a/plugins/omclickhouse/omclickhouse.c
+++ b/plugins/omclickhouse/omclickhouse.c
@@ -859,7 +859,7 @@ BEGINnewActInst
     CODE_STD_STRING_REQUESTnewActInst(1);
     CHKiRet(OMSRsetEntry(*ppOMSR, 0,
                          (uchar *)strdup((pData->tplName == NULL) ? " 
StdClickHouseFmt" : (char *)pData->tplName),
-                         OMSR_RQD_TPL_OPT_SQL));
+                         OMSR_RQD_TPL_OPT_SQL_BACKSLASH));
 
     if (server != NULL) {
         CHKiRet(computeBaseUrl((const char *)server, pData->port, 
pData->useHttps, pData));
diff --git a/runtime/action.c b/runtime/action.c
index 83970c996..4cb3ac8d3 100644
--- a/runtime/action.c
+++ b/runtime/action.c
@@ -2712,6 +2712,20 @@ rsRetVal addAction(action_t **ppAction,
                          "the SQL or stdSQL option in your template!\n");
                 ABORT_FINALIZE(RS_RET_RQD_TPLOPT_MISSING);
             }
+            if ((iTplOpts & OMSR_RQD_TPL_OPT_SQL_BACKSLASH) && 
(pAction->ppTpl[i]->optFormatEscape != SQL_ESCAPE)) {
+                errno = 0;
+                LogError(0, RS_RET_RQD_TPLOPT_MISSING,
+                         "Action disabled. To use this action, you have to 
specify "
+                         "the SQL option (option.sql=\"on\") in your 
template!\n");
+                ABORT_FINALIZE(RS_RET_RQD_TPLOPT_MISSING);
+            }
+            if ((iTplOpts & OMSR_RQD_TPL_OPT_SQL_BACKSLASH) &&
+                (pAction->ppTpl[i]->pStrgen != NULL || 
pAction->ppTpl[i]->bHaveSubtree)) {
+                errno = 0;
+                LogError(0, RS_RET_RQD_TPLOPT_MISSING,
+                         "Action disabled. Backslash-aware SQL escaping 
requires a string or list template!\n");
+                ABORT_FINALIZE(RS_RET_RQD_TPLOPT_MISSING);
+            }
             tplNoteUse(pAction->ppTpl[i], iTplOpts & OMSR_TPL_AS_DYNAFILE);
         }
 
diff --git a/runtime/objomsr.c b/runtime/objomsr.c
index 4e8ba0207..70b2fe088 100644
--- a/runtime/objomsr.c
+++ b/runtime/objomsr.c
@@ -142,7 +142,7 @@ int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, 
uchar **ppTplName, int
 rsRetVal OMSRgetSupportedTplOpts(unsigned long *pOpts) {
     DEFiRet;
     assert(pOpts != NULL);
-    *pOpts = OMSR_RQD_TPL_OPT_SQL | OMSR_TPL_AS_ARRAY | OMSR_TPL_AS_MSG | 
OMSR_TPL_AS_JSON | OMSR_TPL_AS_DYNAFILE;
+    *pOpts = OMSR_RQD_TPL_OPT_SQL | OMSR_TPL_AS_ARRAY | OMSR_TPL_AS_MSG | 
OMSR_TPL_AS_JSON | OMSR_TPL_AS_DYNAFILE | OMSR_RQD_TPL_OPT_SQL_BACKSLASH;
     RETiRet;
 }
 
diff --git a/runtime/objomsr.h b/runtime/objomsr.h
index bc4f565c3..0047bd335 100644
--- a/runtime/objomsr.h
+++ b/runtime/objomsr.h
@@ -35,7 +35,9 @@
 #define OMSR_TPL_AS_JSON 8 /* introduced in 6.5.1, 2012-09-02 */
 /** Template is used to render a dynamic file name. */
 #define OMSR_TPL_AS_DYNAFILE 16
-/* next option is 32, 64, ... */
+/** Template must use SQL_ESCAPE, which also escapes backslashes. */
+#define OMSR_RQD_TPL_OPT_SQL_BACKSLASH 32
+/* next option is 64, 128, ... */
 
 struct omodStringRequest_s { /* strings requested by output module for 
doAction() */
     int iNumEntries; /* number of array entries for data elements below */
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index 5853837d8..9c46fb8c1 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -253,7 +253,7 @@ static uchar template_FullJSONFmt[] =
 static uchar template_StdClickHouseFmt[] =
     "\"INSERT INTO rsyslog.SystemEvents (severity, facility, "
     "timestamp, hostname, tag, message) VALUES (%syslogseverity%, 
%syslogfacility%, "
-    "'%timereported:::date-unixtimestamp%', '%hostname%', '%syslogtag%', 
'%msg%')\",STDSQL";
+    "'%timereported:::date-unixtimestamp%', '%hostname%','%syslogtag%', 
'%msg%')\",SQL";
 static uchar template_StdOmSenderTrack_senderid[] =
     "\"%fromhost-ip%\""; /* default template for omsendertrack "senderid" 
parameter*/
 static uchar template_PerSourceKey[] = "\"%hostname%\""; /* default template 
for per-source ratelimiting */
-- 
2.56.0

Reply via email to