CVE-2026-43823

swift-crypto: swift-crypto: Denial of Service due to double-free during RSA public key initialization

Published Jul 23, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apple:swift-crypto:*:*:*:*:*:swift:*:*
Type Values Removed Values Added
Title swift-crypto: swift-crypto: Denial of Service due to double-free during RSA public key initialization
Weaknesses CWE-763
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Apple
Apple swift-crypto
Weaknesses CWE-415
Vendors & Products Apple
Apple swift-crypto
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apple
Published
Updated
Jul 23, 2026, 6:12 PM
Reserved
May 1, 2026, 10:46 PM
Status
Analyzed
Published
Jul 23, 2026, 3:17 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Moderate
Public date
Jul 23, 2026, 2:33 PM