CVE-2026-50722IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libreswan | Fix pending | UBUNTU-CVE-2026-50722 | |
| Ubuntu 26.04 | libreswan | Under investigation | UBUNTU-CVE-2026-50722 | |
| Ubuntu 25.10 | libreswan | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-50722 | |
| Ubuntu 24.04 | libreswan | Under investigation | UBUNTU-CVE-2026-50722 | |
| Ubuntu 22.04 | libreswan | Under investigation | UBUNTU-CVE-2026-50722 | |
| Ubuntu 20.04 | libreswan | Fix pending | UBUNTU-CVE-2026-50722 | |
| Ubuntu 18.04 | libreswan | Fix pending | UBUNTU-CVE-2026-50722 | |
| Debian 13 | libreswan | Fix pending | DEBIAN-CVE-2026-50722 | |
| Debian 12 | libreswan | Fix pending | DEBIAN-CVE-2026-50722 | |
| Red Hat Enterprise Linux 10 | libreswan | Fixed | 0:5.3.2-1.el10_2 | RHSA-2026:46398 |
| Red Hat Enterprise Linux 10 | libreswan-minimal | Fixed | 0:5.3.2-1.el10_2 | RHSA-2026:46398 |
| Red Hat Enterprise Linux 9 | libreswan | Fixed | 0:5.3.2-1.el9fdp | RHSA-2026:46397 |
| Red Hat Enterprise Linux 8 | libreswan | Fixed | 0:4.12-2.el8_10.6 | RHSA-2026:46396 |
| Red Hat Enterprise Linux 7 | libreswan | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libreswan | Will not fix Out of support scope | ||
| AlmaLinux 10 | libreswan | Fixed | 5.3.2-1.el10_2 | ALSA-2026:46398 |
| AlmaLinux 10 | libreswan-minimal | Fixed | 5.3.2-1.el10_2 | ALSA-2026:46398 |
| AlmaLinux 9 | libreswan | Fixed | 4.15-10.el9_8 | ALSA-2026:46397 |
| AlmaLinux 8 | libreswan | Fixed | 4.12-2.el8_10.6 | ALSA-2026:46396 |
| Rocky Linux 10 | libreswan | Fixed | 0:5.3.2-1.el10_2 | RLSA-2026:46398 |
| Rocky Linux 9 | libreswan | Fixed | 0:4.15-10.el9_8 | RLSA-2026:46397 |
| Rocky Linux 8 | libreswan | Fixed | 0:4.12-2.el8_10.6 | RLSA-2026:46396 |
| Alpine Linux 3.24 | libreswan | Fixed | 5.3.2-r0 | ALPINE-CVE-2026-50722 |
| Alpine Linux 3.23 | libreswan | Fixed | 5.3.3-r0 | ALPINE-CVE-2026-50722 |
What the vendor says
As published in the CVE record by libreswan, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The Libreswan Project libreswan: affected: up to 5.3, 5.3.1 not affected
Solution: 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/
Workaround: 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.
Vendor advisories:
- https://libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt (vendor-advisory)
- https://libreswan.org/security/CVE-2026-50722/ (patch)
References
- https://libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt
- https://libreswan.org/security/CVE-2026-50722/
- https://libreswan.org/security/CVE-2026-50721/CVE-2026-50721.txt
- https://www.rfc-editor.org/rfc/rfc8017
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.