CVE-2026-50721
JSON

7.5high

IKEv1 Denial of Service via RSA-SHA1 (PKCS#1 Version 1.5 Encrypted) authentication payload

Severity
7.5high CVSS:3.1 by libreswan
Exploit likelihood
0.39% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
libreswan

Description

Libreswan, via the function RSA_authenticate_hash_signature_raw_rsa(), did not correctly verify the length of the authentication hash when the SIG payload of an IKEv1 packet was encoded using PKCS #1 RSA Encryption as per RFC 2313. A remote attacker can use a variation on the Bleichenbacher attack to forge the SIG payload when small public exponents are being used (e.g., e=3), which could lead to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the SIG payload, could trigger an assertion leading to denial-of-service. The daemon aborts and restarts; continued exploitation causes sustained denial of service. Remote code execution is not possible. X.509 certificate verifications of remote IKE peers are not affected.

Affected

Product or packageVersionsReported by
libreswanup to 5.3
Not affected: 5.3.1
CVE List
libreswan libreswanbefore 5.3.1NVD

All scores

libreswan7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
libreswan8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-347CWE-617

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

What each source says

CVE List

Libreswan, via the function RSA_authenticate_hash_signature_raw_rsa(), did not correctly verify the length of the authentication hash when the SIG payload of an IKEv1 packet was encoded using PKCS #1 RSA Encryption as per RFC 2313. A remote attacker can use a variation on the Bleichenbacher attack to forge the SIG payload when small public exponents are being used (e.g., e=3), which could lead to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the SIG payload, could trigger an assertion leading to denial-of-service. The daemon aborts and restarts; continued exploitation causes sustained denial of service. Remote code execution is not possible. X.509 certificate verifications of remote IKE peers are not affected.

NVD (es)

Libreswan, a través de la función RSA_authenticate_hash_signature_raw_rsa(), no verificaba correctamente la longitud del hash de autenticación cuando la carga útil SIG de un paquete IKEv1 se codificaba usando Cifrado RSA PKCS #1 según RFC 2313. Un atacante remoto puede usar una variación del ataque Bleichenbacher para falsificar la carga útil SIG cuando se utilizan exponentes públicos pequeños (p. ej., e=3), lo que podría llevar a la suplantación de identidad. Además, un atacante remoto, al codificar un hash más corto de lo esperado en la carga útil SIG, podría activar una aserción que llevaría a la denegación de servicio. El demonio aborta y se reinicia; la explotación continuada causa una denegación de servicio sostenida. La ejecución remota de código no es posible. Las verificaciones de certificados X.509 de pares IKE remotos no se ven afectadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50721 changed 2026-07-07CVE Terms of Use
NVDCVE-2026-50721 changed 2026-10-25Public domain