CVE-2026-50721
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedLibreswan, 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.
In the news
Third-party coverageSurfaced from public web coverage — external links open in a new tab.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceLibreswan's RSA_authenticate_hash_signature_raw_rsa() function fails to properly verify the authentication hash length in IKEv1 SIG payloads using PKCS #1 RSA Encryption (RFC 2313). This allows attackers to exploit a Bleichenbacher-style attack with small public exponents (e=e3) to forge signatures and impersonate IKE peers, or trigger assertion failures causing daemon crashes and sustained DoS.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 5.3.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Libreswan versionRun 'ipsec --version' or check the package manager for libreswan version (e.g., 'rpm -q libreswan' or 'dpkg -l | grep libreswan')Affected if The version is lower than 5.3.1
-
Verify IKEv1 is in useReview /etc/ipsec.conf and look for 'ike' or 'phase1' directives that specify IKEv1 (version 1) parameters, or check active connections with 'ipsec status'Affected if IKEv1 connections are configured and active; the vulnerability only affects IKEv1 SIG payloads using PKCS #1 RSA Encryption
-
Identify RSA-authenticated IKEv1 connectionsExamine /etc/ipsec.d/ and /etc/ipsec.conf for connections using 'RSA' authentication method (often 'authby=rsasig') in IKEv1 contextAffected if Connections with 'authby=rsasig' or similar RSA authentication are configured for IKEv1
-
Inspect RSA public exponent valuesCheck RSA private keys in /etc/ipsec.d/private/ using 'openssl rsa -in <keyfile> -text -noout' and examine the 'Exponent' valueAffected if The RSA public exponent (e) equals 3 (e=3), which enables the Bleichenbacher-style attack vector
-
Monitor for daemon crashes or restartsReview system logs (journalctl -u ipsec, /var/log/daemon.log, /var/log/messages) for 'pluto' daemon assertion failures or unexpected restartsAffected if Repeated IKE daemon (pluto) crashes or restarts are logged, indicating possible DoS exploitation
You are affected if running Libreswan below version 5.3.1 with IKEv1 connections using RSA authentication, especially with small public exponent (e=3) keys.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped5.3.1
Upgrade to a Libreswan version that fixes the hash length verification in RSA_authenticate_hash_signature_raw_rsa(). Avoid using small RSA public exponents (e=3) for IKEv1 peer authentication and monitor for repeated daemon restarts indicating DoS exploitation.
Libreswan 5.3.1 or later
- 1. Identify the current installed version of Libreswan using 'ipsec --version' or checking the package manager
- 2. For systems using package managers (yum, dnf, apt), update the package: 'yum update libreswan' or 'dnf update libreswan' or 'apt-get update && apt-get upgrade libreswan'
- 3. For source installations, download Libreswan 5.3.1 or later from the official repository (download.libreswan.org)
- 4. Rebuild and reinstall from source following the standard build process
- 5. Restart the IPsec service: 'systemctl restart ipsec' or 'service ipsec restart'
- 6. Verify the new version is installed: 'ipsec --version'
- 7. Test IKEv1 connections to ensure they function correctly after the upgrade
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation12.0 h
- Testing10.0 h
- Review / QA6.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $9,504.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-50721 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-50721 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data