CVE-2026-43823 swift-crypto: swift-crypto: Denial of Service due to double-free during RSA public key initialization
HighCVSS 7.5
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apple swift-crypto | < 4.5.1; >= 3.2.0, <= 4.5.1 | 4.5.1 | Fixed |
| redhat/nodejs24-main(Red Hat hummingbird 1) | < 11.16.0-1.24.18.0.0.5.hum1 | 11.16.0-1.24.18.0.0.5.hum1 | Fixed |
| redhat/swift-lang-main(Red Hat hummingbird 1) | < 6.3.3-0.1.1.hum1 | 6.3.3-0.1.1.hum1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apple swift-crypto | < 4.5.1 | 4.5.1 |
| redhat/nodejs24-main(Red Hat:hummingbird:1) | < 11.16.0-1.24.18.0.0.5.hum1 | 11.16.0-1.24.18.0.0.5.hum1 |
| redhat/swift-lang-main(Red Hat:hummingbird:1) | < 6.3.3-0.1.1.hum1 | 6.3.3-0.1.1.hum1 |
| apple swift-crypto | >= 3.2.0, <= 4.5.1 | No fix listed |
References
- github.com exploit vendor-advisory
- Red Hat CVE page vendor-advisory
- RHSA-2026:45784 patch vendor-advisory
- RHSA-2026:45785 patch vendor-advisory
- Red Hat Bugzilla 2506494 issue-tracking
- www.cve.org
- nvd.nist.gov