# CVE-2026-43823: When initializing an RSA public key from DER or PEM bytes throws an error, the EVPPKEY is double-freed: first in the catch block, then in t…

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 29% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-23T14:33:20.924Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: apple

## 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.

(As written by CVE List.)

## Affected

- Apple swift-crypto: before 4.5.1; from 3.2.0 up to 4.5.1

## References

- <https://github.com/apple/swift-crypto/security/advisories/GHSA-8q93-f6xh-4f6f> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-43823](https://www.cve.org/CVERecord?id=CVE-2026-43823), CVE Terms of Use, modified 2026-07-23
- NVD: [CVE-2026-43823](https://nvd.nist.gov/vuln/detail/CVE-2026-43823), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-43823 · Whole record: https://cve.day/CVE-2026-43823.json · Rebuilt by cve.day 2026-11-25T22:59:29.932Z
