CVE-2026-42015: Gnutls: gnutls: memory corruption due to off-by-one error in pkcs#12 bag handling

Published May 7, 2026
·
Updated

A flaw was found in gnutls. An off-by-one error exists in the PKCS#12 bag element bounds check. This vulnerability allows an remote attacker to write past the internal array of a PKCS#12 bag when appending to a bag that already contains 32 elements. This memory corruption could lead to a denial of service (DoS) or potentially other unspecified impacts.

Other sources

Gnutls: gnutls: memory corruption due to off-by-one error in pkcs#12 bag handling

Microsoft

libgnutls: Fix off-by-one in PKCS#12 bag element bounds check Appending to a PKCS#12 bag that already contained 32 elements could write past the bag's internal array. Reported by Zou Dikai.

Red Hat

Affected Software

2 affected componentsFixes available
debian/gnutls28<=3.7.1-5+deb11u5, <=3.7.1-5+deb11u9, <=3.7.9-2+deb12u6, <=3.8.9-3+deb13u3
3.7.9-2+deb12u73.8.9-3+deb13u43.8.13-1
Microsoft azl3 gnutls 3.8.3-11<3.8.13-1
3.8.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 3.7.9-2+deb12u7Fixed in 3.8.9-3+deb13u4Fixed in 3.8.13-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.8.13-1
  3. Compensating control

    Mitigate potential DoS/exploitation by limiting remote access to services that parse or process PKCS#12 (PFX) data until gnutls is fixed.

Event History

May 7, 2026
Data Sourced
via Red Hat·10:54 AM
DescriptionSeverityAffected Software
May 20, 2026
Data Sourced
via Debian·02:42 PM
DescriptionAffected Software
May 21, 2026
Data Sourced
via Ubuntu·02:42 PM
RemedyDescriptionSeverityAffected Software
May 26, 2026
CVE Published
via MITRE·09:29 PM
Data Sourced
via MITRE·09:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
May 31, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
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-2026-42015?

The severity of CVE-2026-42015 is medium, rated at 5.3.

2

How do I fix CVE-2026-42015?

To fix CVE-2026-42015, update GnuTLS to the latest version that addresses the memory corruption issue.

3

What type of vulnerability is CVE-2026-42015?

CVE-2026-42015 is a memory corruption vulnerability caused by an off-by-one error in handling PKCS#12 bag elements.

4

What are the potential consequences of CVE-2026-42015?

The potential consequences of CVE-2026-42015 include memory corruption that can lead to a denial of service.

5

In which software is CVE-2026-42015 found?

CVE-2026-42015 is found in the GnuTLS package, specifically in gnutls28 on Debian.

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