# CVE-2026-33308: mod_gnutls missing key purpose check in client certificate verification

> Attackers can bypass TLS client authentication using certificates with incorrect key purposes, requiring specific server configurations.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 24 Mar 2026
- **Updated:** 24 Mar 2026
- **Also known as:** GHSA-hm2g-m958-8qgh, UBUNTU-CVE-2026-33308

## What is CVE-2026-33308?

CVE-2026-33308 is a medium-severity authentication bypass vulnerability in airtower-luna mod_gnutls, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Mod_gnutls is a TLS module for Apache HTTPD based on GnuTLS. Prior to version 0.13.0, code for client certificate verification did not check the key purpose as set in the Extended Key Usage extension. An attacker with access to the private key for a valid certificate issued by a CA trusted for TLS client authentication but designated for a different purpose could have used that certificate to improperly access resources requiring TLS client authentication. Server configurations that do not use client certificates (`GnuTLSClientVerify ignore`, the default) are not affected. The problem has been fixed in version 0.13.0 by rewriting certificate verification to use `gnutls_certificate_verify_peers()`, and requiring key purpose id-kp-clientAuth (also known as `tls_www_client` in GnuTLS) by default if the Extended Key Usage extension is present. The new `GnuTLSClientKeyPurpose` option allows overriding the expected key purpose if needed (please see the manual for details). Behavior for certificates without an Extended Key Usage extension is unchanged. If dedicated (sub-)CAs are used for issuing TLS client certificates only (not for any other purposes) the issue has no practical impact.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2026-33308?

It affects 1 product.


Products: Mod Gnutls Project Mod Gnutls.

## How do I fix CVE-2026-33308?

No fix has been published for CVE-2026-33308 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-33308 being exploited?

There is no known exploitation of CVE-2026-33308 in the wild and no public exploit code.

## Other vulnerabilities in airtower-luna mod_gnutls

- [CVE-2026-33307](https://insights.sbomify.com/CVE-2026-33307/): mod_gnutils has stack-based buffer overflow caused by a long client certificate chain (high 7.5)
- [CVE-2023-25824](https://insights.sbomify.com/CVE-2023-25824/): mod_gnutls contains Infinite Loop on request read timeout (high 7.5)
- [CVE-2009-5144](https://insights.sbomify.com/CVE-2009-5144/): Auth bypass in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-33308 and fix it if it is affected.

What it is: CVE-2026-33308 is a medium-severity authentication bypass vulnerability in airtower-luna mod_gnutls, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-33308 in the wild and no public exploit code.

Affected product: airtower-luna mod_gnutls. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-33308/ (Markdown: https://insights.sbomify.com/CVE-2026-33308/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-33308
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-33308
- OSV: https://osv.dev/vulnerability/CVE-2026-33308

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-33308/
Summaries are generated and may contain mistakes; the official description above is the record.
