CVE-2026-33307: mod_gnutils has stack-based buffer overflow caused by a long client certificate chain
Modgnutls is a TLS module for Apache HTTPD based on GnuTLS. In versions prior to 0.12.3 and 0.13.0, code for client certificate verification imported the certificate chain sent by the client into a fixed size gnutlsx509crtt x509[] array without checking the number of certificates is less than or equal to the array size. gnutlsx509crtt is a typedef for a pointer to an opaque GnuTLS structure created using with gnutlsx509crtinit() before importing certificate data into it, so no attacker-controlled data was written into the stack buffer, but writing a pointer after the last array element generally triggered a segfault, and could theoretically cause stack corruption otherwise (not observed in practice). Server configurations that do not use client certificates (GnuTLSClientVerify ignore, the default) are not affected. The problem has been fixed in version 0.12.3 by checking the length of the provided certificate chain and rejecting it if it exceeds the buffer length, and in version 0.13.0 by rewriting certificate verification to use gnutlscertificateverifypeers(), removing the need for the buffer entirely. There is no workaround. Version 0.12.3 provides the minimal fix for users of 0.12.x who do not wish to upgrade to 0.13.0 yet.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33307?
CVE-2026-33307 is considered a high-severity vulnerability due to the potential for remote code execution through stack-based buffer overflow.
How do I fix CVE-2026-33307?
To fix CVE-2026-33307, upgrade mod_gnutls to version 0.12.3 or later, or to version 0.13.0 if applicable.
What versions are affected by CVE-2026-33307?
CVE-2026-33307 affects mod_gnutls versions prior to 0.12.3 and 0.13.0.
What type of vulnerability is CVE-2026-33307?
CVE-2026-33307 is a stack-based buffer overflow vulnerability found in the mod_gnutls TLS module.
Who is impacted by CVE-2026-33307?
Users running affected versions of Apache mod_gnutls are at risk from CVE-2026-33307.