CVE-2024-28835: Gnutls: potential crash during chain building/verification

Published Mar 11, 2024
·
Updated

A flaw has been discovered in GnuTLS where an application crash can be induced when attempting to verify a specially crafted .pem bundle using the "certtool --verify-chain" command.

Other sources

Embargoed issue as reported at https://gitlab.com/gnutls/gnutls/-/issues/1525 (duplicate - https://gitlab.com/gnutls/gnutls/-/issues/1527)

---

Description of problem: I'm reporting a crash observed during chain building/verification. I've turned into a reproducer (not minimal yet, but reliably crashes for me), which I'm attaching to this issue.

As additional context: this reproducer comes from Netflix's BetterTLS (github.com/Netflix/bettertls) project; specifically, it's test case 61 in their "path validation" suite. As such, it's already public on the Internet. However, nobody appears to have run BetterTLS against a recent version of GnuTLS, so I'm filing this as a private issue for triage.

Version of gnutls used: This crash has been observed on GnuTLS 3.8.3, via certtool. I'm using the Homebrew distribution of GnuTLS 3.8.3: https://formulae.brew.sh/formula/gnutls#default

How reproducible: I'm attaching a reproducer in the form of a PEM bundle

Steps to Reproduce: certtool --verify-chain --infile bug.pem

Expected results: I expected a normal program exit, with an exit code of 1 or 0.

Actual results: The program crashes with SIGTRAP, which is probably just because macOS catches the SIGSEGV for triage.

Observed output: Note that no verification profile was selected. In the future the medium profile will be enabled by default.Use --verify-profile low to apply the default verification of NORMAL priority string.|<1>| There was a non-CA certificate in the trusted list: O=bettertls.com,CN=D,serialNumber=9d9b1ac3-6af5-47f2-9cdb-2201652648a0.Trace/BPT trap: 5

Red Hat

GnuTLS is vulnerable to a denial of service, caused by a flaw during chain building/verification. By using a specially crafted .pem bundle using the "certtool --verify-chain" command, a remote attacker could exploit this vulnerability to cause the application to crash.

IBM

Gnutls: potential crash during chain building/verification

Microsoft

Affected Software

10 affected componentsFixes available
ubuntu/gnutls28<3.7.3-4ubuntu1.5
3.7.3-4ubuntu1.5
ubuntu/gnutls28<3.8.1-4ubuntu1.3
3.8.1-4ubuntu1.3
ubuntu/gnutls28<3.8.3-1.1ubuntu3.1
3.8.3-1.1ubuntu3.1
debian/gnutls28<=3.7.1-5+deb11u4, <=3.7.1-5+deb11u3, <=3.7.9-2+deb12u2
3.6.7-4+deb10u83.6.7-4+deb10u123.8.5-4
F5 Traffix SDC=5.2.0, =5.1.0
IBM QRadar Network Packet Capture<=7.5.0 - 7.5.0 Update Package 7
redhat/gnutls<3.8.4
3.8.4
Microsoft cbl2 gnutls 3.7.11-1
Microsoft azl3 gnutls 3.8.3-4
Microsoft azl3 gnutls 3.8.3-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/gnutls28 to a version that resolves this vulnerability.

    Fixed in 3.7.3-4ubuntu1.5
  2. Upgrade

    Upgrade ubuntu/gnutls28 to a version that resolves this vulnerability.

    Fixed in 3.8.1-4ubuntu1.3
  3. Upgrade

    Upgrade ubuntu/gnutls28 to a version that resolves this vulnerability.

    Fixed in 3.8.3-1.1ubuntu3.1
  4. Upgrade

    Upgrade debian/gnutls28 to a version that resolves this vulnerability.

    Fixed in 3.6.7-4+deb10u8Fixed in 3.6.7-4+deb10u12Fixed in 3.8.5-4
  5. Upgrade

    Upgrade redhat/gnutls to a version that resolves this vulnerability.

    Fixed in 3.8.4
  6. Upgrade

    Upgrade gnutls to a version that resolves this vulnerability.

    Fixed in 3.8.4
  7. Configuration

    When using certtool --verify-chain, ensure you apply the default verification with NORMAL priority string (as in: "apply the default verification of NORMAL priority string"), instead of omitting/using an unspecified verification profile that could trigger the crash.

    certtool (GnuTLS) verification profile / priority string = NORMAL
  8. Compensating control

    Avoid using certtool --verify-chain on untrusted or externally supplied specially crafted PEM bundles, since a remote attacker could induce an application crash via a crafted .pem bundle.

Event History

Mar 11, 2024
Data Sourced
via Red Hat·11:29 PM
DescriptionSeverityAffected Software
Mar 21, 2024
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·06:13 AM
Data Sourced
via MITRE·06:13 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeakness
May 31, 2024
Data Sourced
via Launchpad·12:57 PM
Description
Jul 23, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Sep 12, 2024
Advisory Published
via F5·04:05 PM
Nov 9, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-28835?

CVE-2024-28835 has been identified as a high-severity vulnerability that can lead to application crashes.

2

How do I fix CVE-2024-28835?

To fix CVE-2024-28835, you should upgrade to a patched version of GnuTLS such as 3.7.3-4ubuntu1.5 for Ubuntu or equivalent versions for other distributions.

3

Which software is affected by CVE-2024-28835?

CVE-2024-28835 affects GnuTLS versions prior to the specified patched releases, as well as IBM QRadar and F5 Traffix SDC in certain versions.

4

What commands trigger the vulnerability in CVE-2024-28835?

The vulnerability in CVE-2024-28835 can be triggered by using the 'certtool --verify-chain' command with a specially crafted .pem bundle.

5

Is there a workaround for CVE-2024-28835?

Currently, the best course of action for CVE-2024-28835 is to apply the provided software updates, as no specific workaround has been identified.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203