# CVE-2026-33307: mod_gnutils has stack-based buffer overflow caused by a long client certificate chain

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-03-24T01:34:36.146Z
- Modified: 2026-06-17T10:37:17.667Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mod_gnutls 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 `gnutls_x509_crt_t x509[]` array without checking the number of certificates is less than or equal to the array size. `gnutls_x509_crt_t` is a `typedef` for a pointer to an opaque GnuTLS structure created using with `gnutls_x509_crt_init()` 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 `gnutls_certificate_verify_peers()`, 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.

(As written by CVE List.)

## Affected

- airtower-luna mod_gnutls: < 0.12.3
- mod_gnutls_project mod_gnutls: before 0.12.3

## References

- <https://github.com/airtower-luna/mod_gnutls/security/advisories/GHSA-gjpm-55p4-c76r> (patch, vendor-advisory)
- <https://github.com/airtower-luna/mod_gnutls/commit/bf4f08c49acae528e97885082cdee460f4534dc1> (patch)

## Sources

- CVE List: [CVE-2026-33307](https://www.cve.org/CVERecord?id=CVE-2026-33307), CVE Terms of Use, modified 2026-03-24
- NVD: [CVE-2026-33307](https://nvd.nist.gov/vuln/detail/CVE-2026-33307), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33307 · Whole record: https://cve.day/CVE-2026-33307.json · Rebuilt by cve.day 2026-11-25T22:59:16.526Z
