CVE-2026-132888

Description

A flaw was found in librelp. When configured to use Transport Layer Security (TLS) with certificate validation and the GnuTLS driver, the library fails to verify the peer certificate chain. A remote, unauthenticated attacker can exploit this issue by presenting an invalid or self-signed certificate, allowing them to bypass authentication and act as a trusted log source or collector.

Statement

Red Hat rates this vulnerability as Important because an unauthenticated remote attacker can bypass mutual TLS authentication without presenting a valid certificate, potentially injecting spoofed log entries or intercepting sensitive data. This severity reflects the elevated risk to logging integrity and confidentiality across network boundaries when RELP is exposed. However, librelp is not enabled by default on Red Hat Enterprise Linux, and the flaw only manifests when RELP is explicitly configured to use the non-default 'certvalid' authentication mode with GnuTLS.

Mitigation

Restrict network reachability to the RELP service port using firewall rules so that only authorized systems can establish connections, or switch to an alternate authentication mode such as "fingerprint" or "name".

To restrict the RELP port (default 20514/tcp) to authorized IP addresses using firewalld:

firewall-cmd --permanent --zone=trusted --add-source=<TRUSTED_IP_OR_SUBNET>
firewall-cmd --permanent --zone=trusted --add-port=20514/tcp
firewall-cmd --permanent --remove-port=20514/tcp
firewall-cmd --reload

Alternatively, if RELP network logging is not essential, disable the imrelp or omrelp configuration in /etc/rsyslog.conf or /etc/rsyslog.d/ and restart rsyslog:

systemctl restart rsyslog

Caveats:
Restricting access via firewall rules prevents connections from untrusted networks but does not prevent spoofing from hosts residing within the trusted IP range. Disabling RELP modules or changing authentication modes prevents log forwarding until all participating systems are reconfigured.

Warning: Modifying firewall configurations requires reloading firewalld, and changing rsyslog settings requires restarting the rsyslog daemon, which will cause a brief interruption in log handling.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.5N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Understanding the Weakness (CWE)

Integrity,Authentication

Technical Impact: Bypass Protection Mechanism; Gain Privileges or Assume Identity

When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

Acknowledgements

Red Hat would like to thank s4cr00t (Alipay Security Team) for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.