Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2493+ Articles
160+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-28815: swift-crypto X-Wing HPKE Out-of-Bounds Read
CVE-2026-28815: swift-crypto X-Wing HPKE Out-of-Bounds Read
SECURITYHIGHCVE-2026-28815

CVE-2026-28815: swift-crypto X-Wing HPKE Out-of-Bounds Read

A crafted short X-Wing HPKE encapsulated key can trigger an out-of-bounds read in the C decapsulation path of Apple's swift-crypto library, potentially...

Dylan H.

Security Team

April 3, 2026
2 min read

Affected Products

  • Apple swift-crypto < 4.3.1

Overview

CVE-2026-28815 is a high-severity vulnerability in Apple's swift-crypto library affecting the X-Wing Hybrid Public Key Encryption (HPKE) implementation. An attacker supplying a specially crafted short encapsulated key can trigger an out-of-bounds read in the C decapsulation code path.

FieldDetail
CVE IDCVE-2026-28815
CVSS Score7.5 (High)
Affectedswift-crypto < 4.3.1
Fixed Inswift-crypto 4.3.1
VectorNetwork, no authentication required
ImpactCrash / memory disclosure

Vulnerability Details

X-Wing is a hybrid KEM (Key Encapsulation Mechanism) that combines X25519 Diffie-Hellman with ML-KEM-768 (Kyber) for post-quantum resistance. The defect exists in the native C implementation of the decapsulation routine: when the encapsulated key material is shorter than the expected format, a length validation is bypassed, allowing the library to read past the end of an allocated buffer.

Depending on memory layout and platform-level protections (ASLR, guard pages), the result is either:

  • Process crash — denial of service for applications performing X-Wing decapsulation
  • Memory disclosure — leaking bytes adjacent to the key buffer, potentially exposing sensitive heap data

The flaw is limited to the X-Wing decapsulation path; standard X25519 and ML-KEM-768 operations are unaffected.

Affected Components

  • Library: swift-crypto (Apple)
  • Component: CryptoBoringWrapper / X-Wing HPKE C bindings
  • Versions: All releases prior to 4.3.1
  • Platforms: Any Swift project linking swift-crypto, including server-side Swift, iOS/macOS apps using the library directly

Mitigation

Update swift-crypto to version 4.3.1 or later. In your Package.swift:

.package(url: "https://github.com/apple/swift-crypto.git", from: "4.3.1")

Run swift package update to pull the patched version.

If an immediate upgrade is not possible, consider disabling X-Wing HPKE operations at the application layer until the patch can be applied.

References

  • NVD Entry — CVE-2026-28815
  • Apple swift-crypto GitHub
  • swift-crypto 4.3.1 Release Notes
#CVE#swift-crypto#Apple#HPKE#Cryptography#Out-of-Bounds#Memory Disclosure

Related Articles

CVE-2026-8457: WooCommerce Social Login Authentication Bypass (CVSS 9.8)

A critical authentication bypass vulnerability in the WooCommerce - Social Login WordPress plugin allows unauthenticated attackers to log in as any registered user by exploiting a missing JWT signature verification in the Apple login handler.

3 min read

CVE-2026-28911: macOS Critical Memory Corruption via Malicious App

A critical memory corruption vulnerability in macOS allows a malicious application to corrupt memory of a system process. Apple patched the flaw in macOS Sonoma 14.8.8 and macOS Tahoe 26.6 with a CVSS score of 9.8.

2 min read

CVE-2026-28928: Apple Platform Use-After-Free Causes Unexpected System Termination

A critical use-after-free vulnerability affects iOS, iPadOS, macOS, tvOS, and watchOS. A malicious app can trigger unexpected system termination. Apple patched the flaw across all platforms in the July 2026 security release wave.

2 min read
Back to all Security Alerts