CVE-2026-43823
JSON

7.5high

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
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.43% (higher than 29% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Apple swift-cryptobefore 4.5.1, from 3.2.0 up to 4.5.1CVE List, NVD

Classification

CWE-415

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Al inicializar una clave pública RSA a partir de bytes DER o PEM y se produce un error, el EVP_PKEY se libera dos veces: primero en el bloque catch y luego en el deinit. Esto puede provocar un fallo en futuras asignaciones de memoria. Esta doble liberación se manifiesta cuando BoringSSL no puede decodificar la clave pública a partir de los bytes proporcionados. Esta vulnerabilidad se aborda en la versión 4.5.1 de swift-crypto.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43823 changed 2026-07-23CVE Terms of Use
NVDCVE-2026-43823 changed 2026-10-24Public domain