CVE-2026-50721

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

Configuration 1 (hide)

cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:*

History

25 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (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.

Information

Published : 2026-07-02 22:16

Updated : 2026-10-25 21:10


NVD link : CVE-2026-50721

Mitre link : CVE-2026-50721

CVE.ORG link : CVE-2026-50721


JSON object : View

Products Affected

libreswan

  • libreswan
CWE
CWE-347

Improper Verification of Cryptographic Signature

CWE-617

Reachable Assertion