Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-43823: 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. in Apple swift-crypto

0
Medium
VulnerabilityCVE-2026-43823cvecve-2026-43823
Published: 07/23/2026 (07/23/2026, 14:33:20 UTC)
Source: CVE Database V5
Vendor/Project: Apple
Product: swift-crypto

Description

CVE-2026-43823 is a vulnerability in Apple swift-crypto where initializing an RSA public key from DER or PEM bytes can cause a double-free of the EVP_PKEY* object if an error occurs during decoding. This double-free happens first in the catch block and then again during object deinitialization, potentially leading to crashes on subsequent memory allocations. The issue arises when BoringSSL fails to decode the provided public key bytes. This vulnerability is fixed in swift-crypto version 4.5.1.

Affected software

apple/swift-crypto
pkg:swift/apple/swift-crypto
Affected versions
<4.5.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 15:22:12 UTC

Technical Analysis

The vulnerability occurs in Apple swift-crypto when an RSA public key initialization from DER or PEM encoded bytes fails. Specifically, if BoringSSL cannot decode the public key bytes, the EVP_PKEY* pointer is freed twice: once in the error handling catch block and again during the deinitialization of the object. This double-free can cause crashes in future memory allocations, potentially destabilizing applications using the affected library. The issue is resolved in swift-crypto version 4.5.1.

Potential Impact

The double-free vulnerability can lead to application crashes due to memory corruption when the EVP_PKEY* is freed twice. This may cause denial of service conditions in applications relying on swift-crypto for RSA public key handling. There is no indication of code execution or data leakage from the provided information.

Mitigation Recommendations

Upgrade to swift-crypto version 4.5.1 or later, where this double-free issue has been addressed. No other mitigation steps are indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apple
Date Reserved
2026-05-01T22:46:27.822Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a622e759c2644c7f84289a7

Added to database: 07/23/2026, 15:08:37 UTC

Last enriched: 07/23/2026, 15:22:12 UTC

Last updated: 07/23/2026, 16:08:20 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses