GrepBoard/Manuals
605 manuals ·

rsyslog RELP TLS certvalid: Check CVE-2026-132888

·Tested on Debian 13 (Docker) · rsyslog 8.2504.0 · librelp 1.11.0 · librelp official advisory · 2026-11·Test scope ↓·7 steps

In librelp 1.2.18 to 1.13.0, GnuTLS with tls.authmode="certvalid" skips peer certificate validation (CVE-2026-132888). Check, work around, roll back.

librelp 1.14.0 (2026-11-26) fixes CVE-2026-132888 (High, CVSS 7.5). When librelp is built with GnuTLS and a RELP connection uses tls.authmode="certvalid", the peer certificate is not validated at all, and the advisory says self-signed certificates and certificates from an unrelated CA are accepted. This article restates the advisory; the missing validation was not reproduced here.

[1] Check the conditions. This is the Impact and Affected text of the GitHub advisory. All four must hold.

ConditionValue
RELP over TLSyes
tls.authmodecertvalid
TLS driverGnuTLS (the advisory: the default TLS library of rsyslog's imrelp and omrelp)
librelp1.2.18 up to but not including 1.14.0 (through 1.13.0)

Both the receiving side (imrelp) and the sending side (omrelp) are affected. The rsyslog omrelp docs list only fingerprint and name for tls.authMode, but omrelp 8.2504.0 accepted a certvalid setting in the test, so check your senders too. The advisory lists these as not affected: fingerprint or name authentication, setups without TLS, and the OpenSSL driver. It names two impacts: on a receiver, any host that can reach the listener can inject log messages that look like they come from a trusted sender; on a sender, an attacker who can intercept the connection can pose as the log server and receive the forwarded logs.

[2] Check the librelp version. This is the output in a Debian 13 container.

console
$ dpkg-query -W rsyslog rsyslog-relp 'librelp*'
output
librelp0:amd64	1.11.0-2rsyslog	8.2504.0-1+deb13u2rsyslog-relp	8.2504.0-1+deb13u2

By number, 1.11.0 is inside the range. But distribution packages can keep the version number and backport only the fix (see the curl article), so do not decide from the number alone. Distribution status as queried around 07:00 KST on 2026-11-30:

SourceStatus
Debian trackerbookworm 1.11.0-1, trixie 1.11.0-2 and forky 1.13.0-1 are vulnerable; sid 1.14.0-1 is fixed. trixie carries the note <no-dsa> (Minor issue)
Ubuntu CVE JSONevery release from trusty through noble, resolute and stonking is needs-triage, priority medium

The Red Hat page was not opened. 1.14.0 is the fixed release. 1.15.0 (2026-11-29) is the next release, centered on a license change, so do not read it as a separate fix for this CVE.

[3] Find the setting. This only reads files. The results below come from sample files created in a test container.

console
$ grep -rniE 'relp|authmode|tlslib' /etc/rsyslog.conf /etc/rsyslog.d/
output
/etc/rsyslog.conf:70:include(file="/opt/relp-extra/*.conf")/etc/rsyslog.d/50-forward.conf:1:module(load="omrelp")/etc/rsyslog.d/50-forward.conf:3:  type="omrelp"/etc/rsyslog.d/50-forward.conf:7:  tls.authMode="certvalid"/etc/rsyslog.d/50-forward.conf:8:  tls.caCert="/etc/ssl/relp/ca.pem"

-i covers the mixed case (tls.authMode), and a multi-line config still matches line by line. But the include line above matched only because its path contains relp; with another name it would not show. List the include lines separately and search their paths the same way.

console
$ grep -rniE '^\s*(include|\$includeconfig)' /etc/rsyslog.conf /etc/rsyslog.d/
output
/etc/rsyslog.conf:45:$IncludeConfig /etc/rsyslog.d/*.conf/etc/rsyslog.conf:70:include(file="/opt/relp-extra/*.conf")

Do not read "no match" as safe. Old $-style RELP directives were not checked. The driver is chosen by the module's tls.tlsLib; the rsyslog docs say gnutls is the default when it is unset and recommend openssl. Debian's librelp links both libraries, so ldd cannot tell you which one is in use. The docs read for this article do not say what happens when tls.authMode is missing altogether; the advisory names the case where it is set to certvalid.

[4] Before changing anything, copy the config and check the syntax. If a .bak copy already exists, use another name, and copy any files that include reads from other paths. rsyslogd -N1 checks syntax and file paths; it does not tell you whether authentication will succeed.

console
$ cp -a /etc/rsyslog.conf /etc/rsyslog.conf.bak && cp -a /etc/rsyslog.d /etc/rsyslog.d.bak$ rsyslogd -N1
output
rsyslogd: version 8.2504.0, config validation run (level 1), master config /etc/rsyslog.confrsyslogd: error: certificate file /etc/ssl/relp/ca.pem couldn't be accessed: No such file or directory  [v8.2504.0 try https://www.rsyslog.com/e/2039 ]rsyslogd: error: certificate file /etc/ssl/relp/ca.pem couldn't be accessed: No such file or directory  [v8.2504.0 try https://www.rsyslog.com/e/2039 ]

This error appears because the certificate path in the sample files does not exist.

[5] If your distribution ships a fixed librelp, update it, restart rsyslog and repeat [2]. As the table shows, Debian 13 has no fixed package yet, so this step was not tested. If you cannot update, use one of the advisory's two workarounds.

  • tls.authMode="name" or "fingerprint" with tls.permittedPeer. The advisory says both verify the certificate. According to the rsyslog docs, name validates the certificate and matches the name, while fingerprint compares only the fingerprint and does not validate against a CA.
  • tls.tlslib="openssl" together with tls.caCert.

The advisory also suggests a firewall that limits the RELP port (often 2514/tcp) to known senders, but that does not stop spoofing from inside the allowed range. Use it in addition to one of the settings above, not instead of them.

A name-based setup. Edit your existing module, input, and action lines. Do not load the same module or open the same port again in a new file. tls.permittedPeer is matched against the peer certificate's subjectAltName, with the subject CN as a fallback. The receiver:

/etc/rsyslog.d/10-relp-in.conf
module(load="imrelp" tls.tlslib="gnutls")input(type="imrelp" port="2514"      tls="on" tls.authMode="name"      tls.caCert="/etc/ssl/relp/ca.pem"      tls.myCert="/etc/ssl/relp/collector.pem"      tls.myPrivKey="/etc/ssl/relp/collector.key"      tls.permittedPeer=["sender.example.com"])

The sender:

/etc/rsyslog.d/90-relp-out.conf
module(load="omrelp" tls.tlslib="gnutls")action(type="omrelp" target="collector.example.com" port="2514"       tls="on" tls.authMode="name"       tls.caCert="/etc/ssl/relp/ca.pem"       tls.myCert="/etc/ssl/relp/sender.pem"       tls.myPrivKey="/etc/ssl/relp/sender.key"       tls.permittedPeer=["collector.example.com"])

To pin by fingerprint, set tls.authMode="fingerprint" and put the peer certificate's fingerprint (openssl x509 -in <certificate> -noout -fingerprint -sha1) after SHA1: in tls.permittedPeer. To switch to OpenSSL, set tls.tlslib="openssl" on both module lines. **Set tls.caCert on both sides** when you do. According to the librelp 1.14.0 change log, earlier releases with the OpenSSL driver trusted the system CA store and their own certificate file when no CA file was set; 1.14.0 stops doing both. Also, the rsyslog docs describe certvalid as accepting any certificate the configured CAs trust without looking at the name, so name is the narrower workaround.

If the names or fingerprints on the two sides do not match, log delivery stops. Change one pair at a time, both sides together, and confirm with [6] right away. A pair with only one side changed was not tested. Apply with rsyslogd -N1, then systemctl restart rsyslog.

[6] Confirm logs still flow. Write a marked line on the sender and look for it in the file the receiver writes to (/var/log/syslog as an example).

On the sender:

console
$ logger -t relp-check relp-check-1130

On the receiver:

console
$ grep relp-check-1130 /var/log/syslog

The four setups were run one after another in the same container (Debian 13, librelp 1.11.0, 127.0.0.1, --network none) with certificates issued by one test CA, and one log line was sent through each. Config validation lines are shortened to ….

console
$ docker run --rm --name "$test" --memory 1g --cpus 2 --network none -v "$run_dir/trusted.sh:/trusted.sh:ro" "$image" bash /trusted.sh
output
[certvalid + gnutls]…Trusted delivery: accepted [name + gnutls]…Trusted delivery: accepted [fingerprint + gnutls]…Trusted delivery: accepted [certvalid + openssl]…Trusted delivery: accepted

All four delivered. All this shows is that switching to a workaround still delivers logs with legitimate certificates. It was not tested whether an untrusted certificate is refused, so it proves neither the vulnerability nor the effect of the fix.

[7] To roll back, first look for files that are not in the copy. The restore only overwrites files that were in the copy, so move any file you created out of /etc/rsyslog.d/ before you restart. If anything else changed after you made the copy, revert only the lines you edited instead of restoring everything.

console
$ diff -rq /etc/rsyslog.d.bak /etc/rsyslog.d$ cp -a /etc/rsyslog.conf.bak /etc/rsyslog.conf && cp -a /etc/rsyslog.d.bak/. /etc/rsyslog.d/$ rsyslogd -N1 && systemctl restart rsyslog

If the restored config is certvalid with GnuTLS on librelp older than 1.14.0, you are back in the affected state from [1]. Confirm delivery with [6] again.

CVE-2026-132889 in the same change log is a different problem: a corrupted TLS record could terminate the host process with GnuTLS. It was fixed in 1.11.0 and affects 1.4.0 to 1.10.0.

Check it with the Certificate (PEM · X.509) decoder tool ↗ — calculated in your browser.

#rsyslog#relp#tls#cve