Skip to main content

swift-crypto CVE-2026-43823

| EUVDEUVD-2026-48288 HIGH
Double Free (CWE-415)
2026-07-23 apple
7.5
CVSS 3.1 · Vendor: apple
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach RSA key-parsing endpoint
  2. Delivery
    Submit malformed DER/PEM public key
  3. Exploit
    BoringSSL decode fails
  4. Execution
    EVP_PKEY double-freed in catch and deinit
  5. Persist
    Allocator corruption crashes process
  6. Impact
    Service denial

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Exploitation requires the target application to construct an RSA public key from attacker-supplied DER or PEM bytes using swift-crypto before version 4.5.1, and the supplied bytes must be malformed such that BoringSSL fails to decode them - that decode failure is the exact trigger that reaches the double-free. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N) no authentication or user interaction is needed once such an input path is exposed. The key limiting factor is reachability: the application must actually feed untrusted/external key bytes into the vulnerable RSA public-key initializer; deployments that only parse trusted, internally-generated keys are not practically exposed.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) rates this 7.5 with impact confined to availability - there is no confidentiality or integrity loss, consistent with a double-free crash rather than exploitable code execution. Network vector and no privileges/interaction mean any service that parses untrusted RSA public keys via swift-crypto can be crashed remotely, which is a realistic DoS for TLS/JWT/certificate-handling backends. No EPSS score, KEV listing, or POC was provided, so there is no public exploit identified at time of analysis and no evidence of active exploitation; while double-frees can sometimes escalate to code execution, BoringSSL's hardened allocator and the availability-only scoring suggest a crash is the practical outcome. This is a moderate-priority patch: easy to trigger and network-reachable, but non-corrupting beyond availability.

Exploit ScenarioDerived

An attacker sends a crafted RSA public key with a malformed DER/PEM encoding to a network service (e.g., a JWT, TLS, or certificate-verification endpoint) that parses it with a pre-4.5.1 swift-crypto. BoringSSL fails to decode the key, the EVP_PKEY* is double-freed, and the process crashes on the next allocation, denying service to all clients. No public exploit code is known, and the low attack complexity (AC:L) means repeated malformed submissions reliably reproduce the crash.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Denial of service in Apple's swift-crypto (all versions before 4.5.1) allows remote attackers to crash a process by supplying malformed RSA public key bytes. When BoringSSL fails to decode a DER- or PEM-encoded RSA public key, the underlying EVP_PKEY* is freed twice - once in the error catch block and again during deinitialization - corrupting the allocator and causing a crash on subsequent memory allocations. No public exploit identified at time of analysis; the flaw is memory-safety corruption limited to availability impact (CVSS 7.5).

RemediationAI

Vendor-released patch: swift-crypto 4.5.1 - upgrade the Package.swift dependency pin to 4.5.1 or later and rebuild, as this is the version that fixes the double-free per the advisory. Review the guidance in Apple's GitHub Security Advisory GHSA-8q93-f6xh-4f6f (https://github.com/apple/swift-crypto/security/advisories/GHSA-8q93-f6xh-4f6f). If you cannot upgrade immediately, the actionable compensating control is to validate or constrain RSA public-key input before it reaches swift-crypto - for example, reject or pre-parse untrusted DER/PEM at an application boundary so malformed encodings never hit the vulnerable initializer, or gate the affected endpoint behind authentication to reduce unauthenticated reachability; the trade-off is added parsing logic and the risk that your pre-validation does not catch exactly the malformed inputs BoringSSL rejects, so treat this as temporary until the library is updated.

Affected VersionsENISA

swift-crypto 0 <4.5.1

Affected Packages

euvd swift_crypto fix: 4.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

swift-crypto is Apple's open-source Swift cryptography library that mirrors the CryptoKit API and is backed by BoringSSL for its low-level primitives. The bug is a classic CWE-415 double-free: the RSA public-key initializer wraps BoringSSL's EVP_PKEY structure, and when key decoding fails the pointer is released in the thrown-error handling path but the object's deinitializer also releases the same pointer. Freeing the same heap allocation twice corrupts BoringSSL/allocator metadata, so a later, unrelated allocation trips over the corrupted free list and aborts the process. The trigger is entirely input-driven: any code path that constructs an RSA public key from attacker-influenced DER or PEM bytes that BoringSSL cannot decode.

Know when Swift Crypto gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apple) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Malformed key bytes are network-supplied with low complexity and no auth or interaction, and a double-free crash affects only availability, so A:H with C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.2 MEDIUM

Primary rating from Vendor (apple).

CVSS VectorVendor: apple

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 23, 2026 - 19:23 NVD
7.5 (HIGH)
Patch available
Jul 23, 2026 - 16:03 EUVD
CVE Published
Jul 23, 2026 - 14:33 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 23, 2026 - 14:33 cve.org
HIGH 7.5

DescriptionCVE.org

When initializing an RSA public key from DER or PEM bytes throws an error, the EVP_PKEY* is double-freed: first in the catch block, then in the deinit. This can lead to a crash on future memory allocations. This double-free manifests when BoringSSL cannot decode the public key from the bytes provided. This vulnerability is addressed in swift-crypto version 4.5.1.

Executive ViewAI

Why It Matters

Swift-crypto before version 4.5.1 contains a denial-of-service vulnerability allowing remote attackers to crash applications processing RSA key operations. Organizations relying on swift-crypto for cryptographic services face availability risk and unexpected application termination without immediate remediation. Patching to version 4.5.1 is required to restore availability guarantees.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
Apple's Swift crypto library, common in server-side Swift, not universally deployed
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy