CVE-2026-43820

Published Jul 23, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apple:swiftnio_ssl:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Title Out‑of‑Bounds Memory Read in Swift NIO SSL Certificate Processing
Type Values Removed Values Added
Title Out‑of‑Bounds Memory Read in Swift NIO SSL Certificate Processing
Type Values Removed Values Added
Title Out‑of‑Bound Read in Swift NIO SSL Certificate SAN Access
Type Values Removed Values Added
First Time appeared Apple
Apple swiftnio Ssl
Vendors & Products Apple
Apple swiftnio Ssl
Type Values Removed Values Added
Title Out‑of‑Bound Read in Swift NIO SSL Certificate SAN Access
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'}

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
Weaknesses

Sources

Status
PUBLISHED
Assigner
apple
Published
Updated
Jul 24, 2026, 8:09 PM
Reserved
May 1, 2026, 10:46 PM
Status
Analyzed
Published
Jul 23, 2026, 3:17 PM
Modified
Oct 24, 2026, 1:10 PM