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 package | Versions | Reported by |
|---|---|---|
| libreswan | up to 5.3 Not affected: 5.3.1 | CVE List |
| libreswan libreswan | before 5.3.1 | NVD |
All scores
| libreswan | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| libreswan | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://libreswan.org/security/CVE-2026-50721/CVE-2026-50721.txt | vendor-advisory | |
| https://libreswan.org/security/CVE-2026-50721/ | patch, vendor-advisory | |
| https://libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt | related, vendor-advisory | |
| https://www.rfc-editor.org/rfc/rfc2313 | technical-description | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50721 changed 2026-07-07 | CVE Terms of Use |
| NVD | CVE-2026-50721 changed 2026-10-25 | Public domain |