Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
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.

579+ Articles
117+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • 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-2025-43510: Apple Multiple Products Improper Locking Vulnerability

Apple watchOS, iOS, iPadOS, macOS, visionOS, and tvOS contain an improper locking vulnerability allowing a malicious app to cause unexpected changes in...

6 min read

CVE-2026-26477: DokuWiki media_upload_xhr() Denial of Service

A high-severity denial-of-service vulnerability in DokuWiki v.2025-05-14b 'Librarian' allows remote attackers to crash the application by exploiting the...

4 min read

CVE-2026-3445: ProfilePress WordPress Plugin Allows Unauthorized Membership Payment Bypass

A high-severity authorization flaw in the ProfilePress WordPress plugin (up to v4.16.11) lets unauthenticated or low-privilege users bypass membership...

3 min read
Back to all Security Alerts