CVE-2026-28815: Swift Crypto · X-Wing HPKE Decapsulation Accepts Malformed Ciphertext Length
Affects github.com/apple/swift-cryptoSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 4.3.1 soon.
Data as of 4 Dec 2026, 17:30 UTC
- Patch
- Available – fixed in 4.3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 3 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade github.com/apple/swift-crypto and swift-crypto to 4.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| SwiftURLgithub.com/apple/swift-crypto | Affected
| Fixed in
|
SwiftURLswift-cryptopkg:swift/swift-cryptoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
This vulnerability is fixed in Swift Crypto version 4.3.1. Users and developers should upgrade to version 4.3.1 or later to remediate this issue. No additional mitigation steps are required as the fix enforces proper input validation on ciphertext length.
Description
CVE-2026-28815 is a high-severity vulnerability in the Swift Crypto library's X-Wing HPKE decapsulation implementation. The decapsulation function accepts attacker-controlled ciphertext without enforcing the required fixed length of 1120 bytes. This leads to an out-of-bounds read when a shorter ciphertext is passed, causing memory safety issues. The flaw occurs during the initialization of an HPKE.Recipient object, which decapsulates the provided encapsulated key. A malformed encapsulated key can trigger undefined behavior instead of a safe validation error. The issue is fixed in version 4.3.1 of Swift Crypto.
References
- github.com/apple/swift-crypto/security/advisories/GHSA-9m44-rr2w-ppp7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-28815 (opens in a new tab)
- github.com/apple/swift-crypto/commit/bb4ba815dab96d4edc1e0b86d7b9acf9ff973a84 (opens in a new tab)
- github.com/apple/swift-crypto (opens in a new tab)
- github.com/apple/swift-crypto/releases/tag/4.3.1 (opens in a new tab)