CVE-2026-50721
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2026-50721",
"sourceIdentifier": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"published": "2026-07-02T22:16:43.367",
"lastModified": "2026-10-25T21:10:00.770",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"affectedData": [
{
"vendor": "The Libreswan Project",
"product": "libreswan",
"defaultStatus": "unaffected",
"collectionURL": "https://github.com/libreswan/libreswan",
"packageName": "libreswan",
"programRoutines": [
{
"name": "RSA_authenticate_hash_signature_raw_rsa"
}
],
"repo": "https://github.com/libreswan/libreswan",
"versions": [
{
"version": "0",
"lessThanOrEqual": "5.3",
"versionType": "semver",
"status": "affected"
},
{
"version": "5.3.1",
"versionType": "semver",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.2,
"impactScore": 5.9
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.2,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-06T18:12:17.199605Z",
"id": "CVE-2026-50721",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-347"
},
{
"lang": "en",
"value": "CWE-617"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.3.1",
"matchCriteriaId": "0D5C4D8F-3003-4ACA-A065-E03AEE680115"
}
]
}
]
}
],
"references": [
{
"url": "https://libreswan.org/security/CVE-2026-50721/",
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://libreswan.org/security/CVE-2026-50721/CVE-2026-50721.txt",
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt",
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://www.rfc-editor.org/rfc/rfc2313",
"source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"tags": [
"Technical Description"
]
}
]
}