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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/apple/swift-crypto/security/advisories/GHSA-8q93-f6xh-4f6f Vendor Advisory
- https://github.com/apple/swift-crypto/security/advisories/GHSA-8q93-f6xh-4f6f Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.5 · appleNVD modified 2026-10-24 13:10
Affected (CPE criteria) 1
cpe:2.3:a:apple:swift-crypto:*:*:*:*:*:swift:*:*