CVE-2026-50722: CWE-347: Improper Verification of Cryptographic Signature in The Libreswan Project libreswan
Libreswan, via the function RSA_authenticate_hash_signature_pkcs1_1_5_rsa(), did not correctly verify the DER encoding of the ASN.1 digest when the IKEv2 AUTH payload was encoded using RSASSA-PKCS1-v1_5 (RFC 8017). A remote attacker can use a variation on the Bleichenbacher attack to forge the AUTH payload when small public exponents are used (e.g., e=3), leading to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the AUTH 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 the remote IKE peer are not affected.
AI Analysis
Technical Summary
The Libreswan project has a vulnerability (CVE-2026-50722) in the RSA_authenticate_hash_signature_pkcs1_1_5_rsa() function where the DER encoding of the ASN.1 digest is not properly verified for IKEv2 AUTH payloads using RSASSA-PKCS1-v1_5. This improper verification enables a remote attacker to exploit a variant of the Bleichenbacher attack, particularly when small public exponents such as e=3 are used, to forge authentication payloads and impersonate peers. Furthermore, an attacker can send an AUTH payload with a shorter-than-expected hash, triggering an assertion failure that causes the daemon to abort and restart, leading to sustained denial-of-service conditions. The vulnerability does not allow remote code execution and does not affect X.509 certificate verification of remote IKE peers.
Potential Impact
An attacker can impersonate a remote peer by forging authentication payloads due to improper signature verification, potentially compromising authentication integrity. Additionally, the vulnerability can be exploited to cause a denial-of-service by repeatedly crashing the daemon through malformed AUTH 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 risk by avoiding configurations that use small public exponents (e.g., e=3) for RSA keys in IKEv2 AUTH payloads. Monitor for daemon crashes and apply any vendor-provided updates once released.
CVE-2026-50722: CWE-347: Improper Verification of Cryptographic Signature in The Libreswan Project libreswan
Description
Libreswan, via the function RSA_authenticate_hash_signature_pkcs1_1_5_rsa(), did not correctly verify the DER encoding of the ASN.1 digest when the IKEv2 AUTH payload was encoded using RSASSA-PKCS1-v1_5 (RFC 8017). A remote attacker can use a variation on the Bleichenbacher attack to forge the AUTH payload when small public exponents are used (e.g., e=3), leading to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the AUTH 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 the remote IKE peer 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 Libreswan project has a vulnerability (CVE-2026-50722) in the RSA_authenticate_hash_signature_pkcs1_1_5_rsa() function where the DER encoding of the ASN.1 digest is not properly verified for IKEv2 AUTH payloads using RSASSA-PKCS1-v1_5. This improper verification enables a remote attacker to exploit a variant of the Bleichenbacher attack, particularly when small public exponents such as e=3 are used, to forge authentication payloads and impersonate peers. Furthermore, an attacker can send an AUTH payload with a shorter-than-expected hash, triggering an assertion failure that causes the daemon to abort and restart, leading to sustained denial-of-service conditions. The vulnerability does not allow remote code execution and does not affect X.509 certificate verification of remote IKE peers.
Potential Impact
An attacker can impersonate a remote peer by forging authentication payloads due to improper signature verification, potentially compromising authentication integrity. Additionally, the vulnerability can be exploited to cause a denial-of-service by repeatedly crashing the daemon through malformed AUTH 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 risk by avoiding configurations that use small public exponents (e.g., e=3) for RSA keys in IKEv2 AUTH payloads. Monitor for daemon crashes and apply any vendor-provided updates once released.
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: 6a46e0f527e9c797192f76b0
Added to database: 07/02/2026, 22:06:45 UTC
Last enriched: 07/10/2026, 08:33:59 UTC
Last updated: 08/16/2026, 12:41:10 UTC
Views: 103
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.