CVE-2026-43820
Awaiting Analysis Awaiting Analysis - Queue

Buffer Overflow in SwiftNIO SSL Certificate SANs Handling

Vulnerability report for CVE-2026-43820, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-23

Last updated on: 2026-07-23

Assigner: Apple Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-23
Last Modified
2026-07-23
Generated
2026-07-23
AI Q&A
2026-07-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
apple swift_nio_ssl 2.37.2
apple swift_nio_ssl From 2.18.0 (inc) to 2.37.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves an out-of-bounds memory access in the swift-nio-ssl library. The issue occurs when accessing raw bytes of Subject Alternative Names (SANs) in certificates through the NIOSSLCertificate._subjectAlternativeNames API. The library incorrectly assumes all SANs are backed by ASN1_STRING, but some SAN types use different structures, leading to memory corruption when their buffers are accessed.

Detection Guidance

To detect this vulnerability, check if your system uses swift-nio-ssl versions 2.18.0 to 2.37.1. Run: swift package show-dependencies --format json | grep swift-nio-ssl. If the version is within the affected range, update to version 2.37.2 or later.

Impact Analysis

This vulnerability primarily affects users who directly access the byte views of SANs via the underscored API without proper type safety checks. It can lead to out-of-bounds memory reads, potentially causing crashes or undefined behavior in applications using vulnerable versions of swift-nio-ssl (2.18.0 to 2.37.1).

Mitigation Strategies

Immediately update swift-nio-ssl to version 2.37.2 or later. Avoid using the underscored API NIOSSLCertificate._subjectAlternativeNames directly without type safety checks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-43820. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart