CVEfocus › CVE database › CVE-2026-50721

CVE-2026-50721IKEv1 Denial of Service via RSA-SHA1 (PKCS#1 Version 1.5 Encrypted) authentication payload

CVSS 7.5 HighEPSS 0.5% (higher than 35% of CVEs)Published 2026-07-02Updated 2026-07-07Assigner: 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.

CWE-347CWE-617

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

13Fixed
6Fix pending
3Under investigation
2Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libreswanFix pendingUBUNTU-CVE-2026-50721
Ubuntu 26.04libreswanUnder investigationUBUNTU-CVE-2026-50721
Ubuntu 25.10libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-50721
Ubuntu 24.04libreswanUnder investigationUBUNTU-CVE-2026-50721
Ubuntu 22.04libreswanUnder investigationUBUNTU-CVE-2026-50721
Ubuntu 20.04libreswanFix pendingUBUNTU-CVE-2026-50721
Ubuntu 18.04libreswanFix pendingUBUNTU-CVE-2026-50721
Debian 13libreswanFix pendingDEBIAN-CVE-2026-50721
Debian 12libreswanFix pendingDEBIAN-CVE-2026-50721
Red Hat Enterprise Linux 10libreswanFixed0:5.3.2-1.el10_2RHSA-2026:46398
Red Hat Enterprise Linux 10libreswan-minimalFixed0:5.3.2-1.el10_2RHSA-2026:46398
Red Hat Enterprise Linux 9libreswanFixed0:5.3.2-1.el9fdpRHSA-2026:46397
Red Hat Enterprise Linux 8libreswanFixed0:4.12-2.el8_10.6RHSA-2026:46396
Red Hat Enterprise Linux 7libreswanFix pending
Affected
Red Hat Enterprise Linux 6libreswanWill not fix
Out of support scope
AlmaLinux 10libreswanFixed5.3.2-1.el10_2ALSA-2026:46398
AlmaLinux 10libreswan-minimalFixed5.3.2-1.el10_2ALSA-2026:46398
AlmaLinux 9libreswanFixed4.15-10.el9_8ALSA-2026:46397
AlmaLinux 8libreswanFixed4.12-2.el8_10.6ALSA-2026:46396
Rocky Linux 10libreswanFixed0:5.3.2-1.el10_2RLSA-2026:46398
Rocky Linux 9libreswanFixed0:4.15-10.el9_8RLSA-2026:46397
Rocky Linux 8libreswanFixed0:4.12-2.el8_10.6RLSA-2026:46396
Alpine Linux 3.24libreswanFixed5.3.2-r0ALPINE-CVE-2026-50721
Alpine Linux 3.23libreswanFixed5.3.3-r0ALPINE-CVE-2026-50721

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.

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-50721/

Workaround: IKEv1 only supports RSA-SHA1 (PKCS#1 Version 1.5) with public key authentication, so there is no way to disable the vulnerable code path within IKEv1. Migrate IKEv1 connections to IKEv2 where authby=ecdsa or authby=rsa-sha2 can be configured. For static tunnel configurations (not Remote Access VPN Client groups), authentication can be changed to use PSK via authby=secret after coordination with the remote peer.

Vendor advisories:

References

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.