CVE-2026-50721: CWE-347: Improper Verification of Cryptographic Signature in The Libreswan Project libreswan
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.
AI Analysis
Technical Summary
The vulnerability in Libreswan (CVE-2026-50721) arises from improper verification of the authentication hash length in the RSA_authenticate_hash_signature_raw_rsa() function when processing IKEv1 SIG payloads encoded using PKCS #1 RSA Encryption (RFC 2313). Attackers can exploit this by using a variant of the Bleichenbacher attack against implementations using small public exponents (such as e=3) to forge signature payloads, enabling impersonation attacks. Additionally, crafting a SIG payload with a shorter than expected hash triggers an assertion failure causing the daemon to abort and restart, leading to sustained denial of service. The vulnerability does not affect remote code execution capabilities or X.509 certificate verification of IKE peers.
Potential Impact
An attacker can impersonate legitimate IKEv1 peers by forging SIG payloads due to improper signature verification, compromising authentication integrity. Furthermore, the vulnerability can be leveraged to cause a denial of service by repeatedly crashing the daemon through malformed SIG payloads. There is no impact on confidentiality or remote code execution, and X.509 certificate verification remains secure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider mitigating exposure by avoiding use of small public exponents (e.g., e=3) in RSA keys if configurable, and monitor for abnormal daemon restarts. No official patch or workaround is currently documented.
CVE-2026-50721: CWE-347: Improper Verification of Cryptographic Signature in The Libreswan Project 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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Libreswan (CVE-2026-50721) arises from improper verification of the authentication hash length in the RSA_authenticate_hash_signature_raw_rsa() function when processing IKEv1 SIG payloads encoded using PKCS #1 RSA Encryption (RFC 2313). Attackers can exploit this by using a variant of the Bleichenbacher attack against implementations using small public exponents (such as e=3) to forge signature payloads, enabling impersonation attacks. Additionally, crafting a SIG payload with a shorter than expected hash triggers an assertion failure causing the daemon to abort and restart, leading to sustained denial of service. The vulnerability does not affect remote code execution capabilities or X.509 certificate verification of IKE peers.
Potential Impact
An attacker can impersonate legitimate IKEv1 peers by forging SIG payloads due to improper signature verification, compromising authentication integrity. Furthermore, the vulnerability can be leveraged to cause a denial of service by repeatedly crashing the daemon through malformed SIG payloads. There is no impact on confidentiality or remote code execution, and X.509 certificate verification remains secure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider mitigating exposure by avoiding use of small public exponents (e.g., e=3) in RSA keys if configurable, and monitor for abnormal daemon restarts. No official patch or workaround is currently documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- libreswan
- Date Reserved
- 2026-06-05T16:10:05.751Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a46e0f527e9c797192f76a9
Added to database: 07/02/2026, 22:06:45 UTC
Last enriched: 07/10/2026, 08:33:48 UTC
Last updated: 08/15/2026, 12:41:09 UTC
Views: 100
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.