Skip to main content
VulnerabilityPublished Updated

CVE-2026-28815: Swift Crypto · X-Wing HPKE Decapsulation Accepts Malformed Ciphertext Length

Affects github.com/apple/swift-cryptoSource GCVE Database

0
Compare
Authoritative record:CVE-2026-28815· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 4.3.1 soon.

Data as of 4 Dec 2026, 17:30 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
SwiftURLgithub.com/apple/swift-cryptoAffected
  • >=4.0.0 <4.3.1
Fixed in
  • 4.3.1
SwiftURLswift-cryptopkg:swift/swift-cryptoOther threatsAffected
  • >=4.0.0 <4.3.1
Fixed in
  • 4.3.1

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

Community reviews

Loading reviews…