Description
A remote attacker can supply a short X-Wing HPKE encapsulated key and trigger an out-of-bounds read in the C decapsulation path, potentially causing a crash or memory disclosure depending on runtime protections. This issue is fixed in swift-crypto version 4.3.1.
Published: 2026-04-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Potential Memory Disclosure or Application Crash
Action: Immediate Patch
AI Analysis

Impact

A vendor‑supplied cryptographic library contains an out‑of‑bounds read in the HPKE decapsulation routine. When a remote caller supplies a specifically crafted short X‑Wing HPKE encapsulated key, the C code reads past the bounds of the intended buffer. The result can either be a termination of the application or, if memory protection mechanisms are absent, the disclosure of arbitrary memory contents. The vulnerability is a classic example of CWE‑125, where an improper bounds check leads to uncontrolled data exposure.

Affected Systems

Apple’s macOS platform is affected because the Swift Crypto library shipped with the OS implements the HPKE algorithm. The flaw is present in all Swift Crypto releases before version 4.3.1; the vendor has fixed the issue in that release. Users of any earlier versions that include Swift Crypto on macOS are therefore impacted.

Risk and Exploitability

The CVSS metric for this vulnerability is 7.5, indicating a high severity. The EPSS score is below 1 %, suggesting that exploitation likelihood is low, and CISA has not listed it in its Known Exploited Vulnerabilities catalog. The likely attack vector requires an attacker to provide a maliciously crafted HPKE encapsulation to an application or service that uses Swift Crypto to decapsulate keys. Successful exploitation would result in either an application crash or a memory disclosure, potentially exposing sensitive data if proper isolation protections are not in place.

Generated by OpenCVE AI on April 13, 2026 at 19:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Swift Crypto to version 4.3.1 or later

Generated by OpenCVE AI on April 13, 2026 at 19:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-9m44-rr2w-ppp7 Swift Crypto: X-Wing HPKE Decapsulation Accepts Malformed Ciphertext Length
History

Tue, 14 Apr 2026 16:45:00 +0000

Type Values Removed Values Added
Title Out-of-Bounds Read in HPKE Decapsulation Leading to Potential Memory Disclosure

Mon, 13 Apr 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Apple swift-crypto
CPEs cpe:2.3:a:apple:swift-crypto:*:*:*:*:*:swift:*:*
Vendors & Products Apple swift-crypto

Tue, 07 Apr 2026 08:00:00 +0000

Type Values Removed Values Added
Title Out-of-Bounds Read in HPKE Decapsulation Leading to Potential Memory Disclosure

Fri, 03 Apr 2026 21:30:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bounds Read in Swift Crypto HPKE Decapsulation
Weaknesses CWE-200

Fri, 03 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Fri, 03 Apr 2026 10:15:00 +0000

Type Values Removed Values Added
Title Out‑of‑Bounds Read in Swift Crypto HPKE Decapsulation
First Time appeared Apple
Apple macos
Weaknesses CWE-125
CWE-200
Vendors & Products Apple
Apple macos

Fri, 03 Apr 2026 02:45:00 +0000

Type Values Removed Values Added
Description A remote attacker can supply a short X-Wing HPKE encapsulated key and trigger an out-of-bounds read in the C decapsulation path, potentially causing a crash or memory disclosure depending on runtime protections. This issue is fixed in swift-crypto version 4.3.1.
References

Subscriptions

Apple Macos Swift-crypto
cve-icon MITRE

Status: PUBLISHED

Assigner: apple

Published:

Updated: 2026-04-03T13:39:46.737Z

Reserved: 2026-03-03T16:36:03.967Z

Link: CVE-2026-28815

cve-icon Vulnrichment

Updated: 2026-04-03T13:39:13.993Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-03T03:16:18.093

Modified: 2026-04-13T17:50:58.550

Link: CVE-2026-28815

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-14T16:41:52Z

Weaknesses