Gnutls: gnutls: memory corruption due to off-by-one error in pkcs#12 bag handling
Summary
| CVE | CVE-2026-42015 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-26 22:16:42 UTC |
| Updated | 2026-07-09 07:16:23 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS: 0.007270000 probability, percentile 0.498350000 (date 2026-07-12)
Problem Types: CWE-193 | CWE-193 Off-by-one Error
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | CNA | CVSS | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2026:29197 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:30004 | [email protected] | access.redhat.com | |
| www.gnutls.org/security-new.html | [email protected] | www.gnutls.org | |
| access.redhat.com/errata/RHSA-2026:33125 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:26319 | [email protected] | access.redhat.com | |
| access.redhat.com/security/cve/CVE-2026-42015 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:32962 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:26409 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:30850 | [email protected] | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| access.redhat.com/errata/RHSA-2026:20612 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:20613 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:30849 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:20611 | [email protected] | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Zou Dikai for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-07T10:50:28.379Z | Reported to Red Hat. |
| CNA | 2026-04-29T00:00:00.000Z | Made public. |
There are currently no legacy QID mappings associated with this CVE.