Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Web

Advisory Analysis

rsyslog Vulnerability Allows Misconfigured Certificate Authentication

A vulnerability in rsyslog's GnuTLS driver allows attackers to bypass peer-name checks with certificates lacking a matching Common Name.

WebVulnerabilities

Key points

  • A vulnerability in rsyslog's GnuTLS driver allows attackers to bypass peer-name checks with certificates lacking a matching Common Name.
  • Certificate-chain validation remains unaffected, as untrusted or self-signed certificates are still rejected.
  • The vulnerability only affects setups using the gtls driver with the x509/name authentication mode.

The rsyslog security team has issued an advisory regarding a flaw in its GnuTLS network stream driver. The problem occurs when the x509/name authentication mode is used, as the system looks for a CN= sequence in the certificate subject, even within other fields like OU or O. This flaw could potentially let an attacker authenticate as any name in the PermittedPeer configuration by using a certificate that does not include a Common Name in its subject attributes. Attackers could potentially inject log messages as a trusted source on a server configured with the imtcp module. The system still correctly rejects untrusted or self-signed certificates during certificate-chain validation. This vulnerability only impacts systems that use the gtls driver with the x509/name authentication mode. Systems that do not use the x509/name check are not affected. A possible mitigation is to switch to the x509/fingerprint authentication method. Another mitigation is to ensure the certificate authority prevents requesters from setting arbitrary subject attributes in certificates. The vulnerability is tracked under the CVE identifier GHSA-2j6x-gq6h-q426. The advisory urges users to upgrade to the latest version promptly. The fix was included in the daily stable build released on 2026-12-01. The advisory states that no specific production setup is known to be affected. The vulnerability is classified as medium by the vendor. The advisory does not confirm any actual exploitation of the flaw. It also does not provide any exploit code or detailed attack steps.

What to do

  1. Update to the latest version of rsyslog as soon as possible.
  2. Use the x509/fingerprint authentication method as a workaround.
  3. Ensure the certificate authority does not allow requesters to set arbitrary subject attributes in certificates.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“rsyslog: gtls driver: x509/name check can accept a certificate that has no matching Common Name (GHSA-2j6x-gq6h-q426)”

Posted by rgerhards on Dec 01 Hello, rsyslog has published the following security advisory(ies). The distros list was notified in advance. Fix: https://github.com/rsyslog/rsyslog/pull/8147 GHSA-2j6x-gq6h-q426: gtls driver: x509/name check can accept a certificate that has no matching Common Name Advisory: https://github.com/rsyslog/rsyslog/security/advisories/GHSA-2j6x-gq6h-q426 ### Summary When…

Also reported by