Description
NIOSSLCertificate._subjectAlternativeNames provides access to the raw bytes for a cert's SANs. NIOSSL provides access to a buffer assumed to be backed by an ASN1_STRING, but not all SANs are backed by ASN1_STRING, so accessing the buffer for such a type can lead to out-of-bounds memory access. This vulnerability is addressed in swift-nio-ssl version 2.37.2.
Published: 2026-07-23
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

NIOSSLCertificate._subjectAlternativeNames exposes the raw bytes of a certificate’s Subject Alternative Names (SANs). It assumes those bytes are backed by an ASN1_STRING, but some SANs are not. When an unsupported SAN type is encountered, reading its buffer results in an out‑of‑bounds memory read. This buffer over‑read can corrupt memory and potentially leak sensitive data to an attacker.

Affected Systems

The vulnerability affects Apple’s Swift NIO SSL library. Versions prior to 2.37.2 are susceptible and 2.37.2 and later releases.

Risk and Exploitability

The CVSS score is 7.7, indicating a high severity, while the EPSS score of less than 1% suggests a low probability of exploitation. The issue is not listed in CISA’s KEV catalog. The attack vector is likely indirect; an attacker would need to influence the processing of certificate SANs, which could occur through crafted TLS traffic or by supplying certificates within the affected application. This requirement makes exploitation difficult, but the vulnerability still presents a serious risk if the condition is met.

Generated by OpenCVE AI on August 3, 2026 at 21:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Swift NIO SSL to version 2.37.2 or later
  • Modify application code to avoid direct access to raw bytes of certificate SANs; use the higher‑level API that safely handles all SAN types
  • Configure SSL/TLS settings to reject certificates that contain unsupported SAN types, ensuring such certificates are not processed

Generated by OpenCVE AI on August 3, 2026 at 21:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bounds Memory Read in Swift NIO SSL Certificate Processing

Sun, 02 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bounds Memory Read in Swift NIO SSL Certificate Processing

Sat, 01 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bound Read in Swift NIO SSL Certificate SAN Access

Tue, 28 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Apple
Apple swiftnio Ssl
Vendors & Products Apple
Apple swiftnio Ssl

Mon, 27 Jul 2026 07:15:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bound Read in Swift NIO SSL Certificate SAN Access

Fri, 24 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
Description NIOSSLCertificate._subjectAlternativeNames provides access to the raw bytes for a cert's SANs. NIOSSL provides access to a buffer assumed to be backed by an ASN1_STRING, but not all SANs are backed by ASN1_STRING, so accessing the buffer for such a type can lead to out-of-bounds memory access. This vulnerability is addressed in swift-nio-ssl version 2.37.2.
References

Subscriptions

Apple Swiftnio Ssl
cve-icon MITRE

Status: PUBLISHED

Assigner: apple

Published:

Updated: 2026-07-24T20:09:49.866Z

Reserved: 2026-05-01T22:46:27.822Z

Link: CVE-2026-43820

cve-icon Vulnrichment

Updated: 2026-07-24T20:09:00.928Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-23T15:17:05.503

Modified: 2026-07-24T21:16:44.627

Link: CVE-2026-43820

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:30:05Z

Weaknesses