CVE-2026-28815

Published Apr 3, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Title Out-of-Bounds Read in HPKE Decapsulation Leading to Potential Memory Disclosure
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
Type Values Removed Values Added
Title Out-of-Bounds Read in HPKE Decapsulation Leading to Potential Memory Disclosure
Type Values Removed Values Added
Title Out‑of‑Bounds Read in Swift Crypto HPKE Decapsulation
Weaknesses CWE-200
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'}

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
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
apple
Published
Updated
Apr 3, 2026, 1:39 PM
Reserved
Mar 3, 2026, 4:36 PM
Status
Analyzed
Published
Apr 3, 2026, 3:16 AM
Modified
Jul 24, 2026, 9:10 PM