IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload

Summary

CVECVE-2026-50722
StatePUBLISHED
Assignerlibreswan
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-02 22:16:43 UTC
Updated2026-07-09 15:47:00 UTC
DescriptionLibreswan, 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.003520000 probability, percentile 0.272930000 (date 2026-07-13)

Problem Types: CWE-347 | CWE-617 | CWE-347 CWE-347: Improper Verification of Cryptographic Signature | CWE-617 CWE-617: Reachable Assertion


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1d42dc95b-23f1-4e06-9076-20753a0fb0dfSecondary8.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS8.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libreswan Libreswan All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA The Libreswan Project Libreswan affected 5.3 semver Not specified
CNA The Libreswan Project Libreswan unaffected 5.3.1 semver Not specified

References

ReferenceSourceLinkTags
www.rfc-editor.org/rfc/rfc8017 d42dc95b-23f1-4e06-9076-20753a0fb0df www.rfc-editor.org Technical Description
libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt d42dc95b-23f1-4e06-9076-20753a0fb0df libreswan.org Vendor Advisory
libreswan.org/security/CVE-2026-50722 d42dc95b-23f1-4e06-9076-20753a0fb0df libreswan.org Vendor Advisory
libreswan.org/security/CVE-2026-50721/CVE-2026-50721.txt d42dc95b-23f1-4e06-9076-20753a0fb0df libreswan.org Vendor Advisory, Mailing List
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Yeonghyeon Choi (en)

CNA: Duyeong Kim (en)

CNA: Andrew Cagney (The Libreswan Team) (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-03-24T00:00:00.000ZLibreswan notified of the issue via [email protected]
CNA2026-06-16T00:00:00.000ZAdvanced notice given to supported customers and distributions
CNA2026-06-24T00:00:00.000ZPublic announcement and release of libreswan 5.3.1

Solutions

CNA: Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org/security/CVE-2026-50722/

Workarounds

CNA: If Windows support is not needed, configure authby=ecdsa or authby=rsa-sha2 (or both via authby=ecdsa,rsa-sha2) to disallow the fallback of RSA PKCS#1 1.5. The leftauth= and rightauth= settings can be updated similarly if those are in use instead of authby.

Exploits

CNA: No known exploitation in the wild. The authentication bypass requires the target to use RSA keys with weak exponents (e=3), which have been disallowed by most cryptographic libraries for at least a decade. The denial-of-service attack is exploitable against any IKEv2 configuration using default authby= settings that permit RSA PKCS#1 v1.5 fallback.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report