Out-of-bounds Write Affecting apple/swift-crypto package, versions >=4.0.0, <4.3.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-COCOAPODS-APPLESWIFTCRYPTO-16072992
  • published15 Apr 2026
  • disclosed3 Apr 2026
  • creditCantina

Introduced: 3 Apr 2026

NewCVE-2026-28815  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade apple/swift-crypto to version 4.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the decapsulate() function when attacker-controlled input of insufficient length is passed to the underlying C API, which expects a fixed-size buffer. An attacker can cause a crash or potentially disclose memory contents by supplying a malformed encapsulated key that is shorter than required, leading to an out-of-bounds read in the C decapsulation process.

CVSS Base Scores

version 4.0
version 3.1