Skip to main content

Libreswan CVE-2026-50722

| EUVDEUVD-2026-41440 MEDIUM
Improper Verification of Cryptographic Signature (CWE-347)
2026-07-02 libreswan GHSA-h4cv-5vw8-2p6m
5.9
CVSS 3.1 · NVD
Temporal: 7.5
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach IKEv2 listener (UDP/500,4500)
  2. Delivery
    Initiate IKE_AUTH exchange
  3. Exploit
    Send forged PKCS#1 v1.5 AUTH payload
  4. Execution
    Lax DER parser accepts e=3 signature
  5. Persist
    Impersonate trusted VPN peer (or short-hash assertion aborts daemon
  6. Impact
    DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
Exploitation Conditions

For the impersonation/forgery path, the required condition is that the authenticating peer uses IKEv2 AUTH with RSASSA-PKCS1-v1_5 raw RSA signatures AND an RSA key with a small public exponent such as e=3 - this non-default key configuration is the exact prerequisite and the primary limiting factor (modern keys typically use e=65537, which is not vulnerable to the low-exponent forgery). The attack requires network reach to the IKE listener (UDP/500 or UDP/4500) and is unauthenticated (PR:N), with high complexity (AC:H). For the denial-of-service path, the only prerequisite is the ability to send a crafted IKEv2 AUTH payload with a shorter-than-expected hash to the daemon; no small-exponent key is needed, making it broadly reachable but limited to service disruption (daemon abort/restart) rather than compromise. X.509 certificate-based peer verification is not exploitable via this flaw.

Impact

The NVD CVSS 3.1 score is 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H): network-reachable and unauthenticated (PR:N), but with high attack complexity (AC:H) reflecting the cryptographic conditions and math required. The impersonation impact is gated on the target/peer using a small public exponent such as e=3, which is a non-default and increasingly uncommon key configuration - this materially lowers real-world exploitability for the forgery path and justifies AC:H. The DoS path (short hash → assertion → daemon abort/restart) is far more broadly reachable and requires no special key configuration, making availability the most realistic mass-impact vector. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active exploitation; treat this as a serious cryptographic authentication bypass to patch promptly on internet-facing IKE endpoints rather than a confirmed in-the-wild threat. Note the tags include 'RCE' and 'Jwt Attack', but the description explicitly states remote code execution is not possible and the attack is a PKCS#1 v1.5 (not JWT) signature-forgery - treat those tags as inaccurate.

Exploit ScenarioDerived

An attacker who can reach the victim's IKEv2 endpoint initiates an IKE_AUTH exchange and submits a forged RSASSA-PKCS1-v1_5 AUTH payload; if the peer key uses a small exponent like e=3, the lax DER parser accepts the crafted signature and the attacker impersonates a trusted peer to establish a VPN tunnel. Alternatively, the attacker repeatedly sends AUTH payloads containing a shorter-than-expected hash, tripping an assertion that aborts the daemon on each attempt for a sustained denial of service. No public exploit code was identified, and the forgery path's high complexity (AC:H) reflects the non-default e=3 requirement.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 02, 2026

Peer impersonation and denial-of-service in Libreswan IPsec/IKEv2 arises from improper DER/ASN.1 digest verification in RSA_authenticate_hash_signature_pkcs1_1_5_rsa() when the IKEv2 AUTH payload uses RSASSA-PKCS1-v1_5 signatures. A remote unauthenticated attacker can mount a Bleichenbacher-style forgery to impersonate a peer when small RSA public exponents (e.g., e=3) are in use, or send an undersized hash to trip an assertion that aborts and restarts the daemon for sustained DoS. A vendor patch is available and there is no public exploit identified at time of analysis; RCE is not possible and X.509 certificate verification of the peer is unaffected.

Earlier versions of this analysis (2)
v2 Jul 02, 2026 - 22:29 cvss changed CVSS 8.1

Peer impersonation and denial-of-service in Libreswan IKEv2 affect deployments where remote IKE peers authenticate with RSASSA-PKCS1-v1_5 signatures. Because RSA_authenticate_hash_signature_pkcs1_1_5_rsa() fails to strictly validate the DER-encoded ASN.1 digest, a remote attacker can mount a Bleichenbacher-style signature-forgery attack against peers using small public exponents (e.g., e=3) to forge a valid AUTH payload and impersonate a trusted peer, or send an undersized hash to trip an assertion that aborts and restarts the daemon for a sustained DoS. There is no public exploit identified at time of analysis; the flaw is signature-verification-only and cannot lead to remote code execution.

v1 Jul 02, 2026 - 22:16 CVSS 7.5

Authentication bypass and denial-of-service in Libreswan's IKEv2 RSASSA-PKCS1-v1_5 signature handling allow a remote unauthenticated attacker to impersonate an IKE peer and to repeatedly crash the daemon. The flaw is a Bleichenbacher-style signature-forgery weakness in RSA_authenticate_hash_signature_pkcs1_1_5_rsa(), where lax DER/ASN.1 digest verification lets a forged AUTH payload validate when the peer uses a small public exponent (e.g. e=3); a separately crafted short-hash AUTH payload trips an assertion that aborts the daemon. Vendor (Libreswan) reported it with a patch available; there is no public exploit identified at time of analysis, and it is not in CISA KEV.

RemediationAI

Apply the vendor-released Libreswan patch published at https://libreswan.org/security/CVE-2026-50722/ and detailed in the advisory https://libreswan.org/security/CVE-2026-50722/CVE-2026-50722.txt (upgrade to the fixed release once the exact version is confirmed from that advisory, as the input does not name a specific fix version). Until patched, mitigate the impersonation path by avoiding small RSA public exponents (do not use e=3 keys; use e=65537) and, where feasible, migrate peer authentication from raw RSASSA-PKCS1-v1_5 signatures to X.509 certificate-based authentication (unaffected) or to stronger signature schemes - with the trade-off of coordinated configuration changes on both peers. For the DoS path, restrict IKE reachability by firewalling UDP/500 and UDP/4500 to known VPN peer addresses so untrusted hosts cannot send crafted AUTH payloads, accepting that this only helps where peer IPs are predictable; monitor and auto-restart the daemon (e.g., via systemd) as a stopgap, noting it does not stop sustained abort loops.

Affected VersionsENISA

libreswan 0 ≤5.3

Affected Packages

euvd libreswan no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Libreswan is an open-source IKE/IPsec VPN daemon (a Openswan/FreeS/WAN descendant) widely used on Linux to establish IKEv2 security associations. The flaw is in its verification of RSASSA-PKCS1-v1_5 signatures (RFC 8017 / PKCS#1 v1.5) carried in the IKEv2 AUTH payload during peer authentication. The root cause maps to CWE-347 (Improper Verification of Cryptographic Signature): the code failed to strictly validate the DER encoding of the ASN.1 DigestInfo structure wrapping the hash, allowing extra bytes to be smuggled around the hash. This is the classic precondition for a Bleichenbacher low-exponent signature-forgery attack, where a cube-root can be crafted into a value that passes a lax parser as a valid e=3 signature. The affected component is only the raw-RSA-signature AUTH path; the separate X.509 certificate chain verification of the remote peer is explicitly not affected.

Know when Libreswan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (libreswan) PRIMARY HIGH
NVD 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CIRCL (temporal) 7.5 HIGH
vuln.today AI 8.1 HIGH

Network-reachable and unauthenticated (PR:N); forgery needs the non-default small-exponent condition, giving AC:H; impersonation yields C:H/I:H and daemon-abort DoS gives A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 MEDIUM

Primary rating from Vendor (libreswan).

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Jul 09, 2026 - 15:52 NVD
HIGH MEDIUM
CVSS changed
Jul 09, 2026 - 15:52 NVD
8.1 (HIGH) 5.9 (MEDIUM)
CVSS changed
Jul 02, 2026 - 22:22 NVD
7.5 (HIGH) 8.1 (HIGH)

DescriptionNVD

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.

Executive ViewAI

Why It Matters

Libreswan, a widely-deployed IPsec implementation, contains a flaw in RSA signature verification that permits unauthenticated remote attackers to either forge authentication credentials to impersonate VPN peers or disable VPN gateways through denial-of-service attacks. No public exploit identified at time of analysis; however, this vulnerability exposes organizations using Libreswan for remote access or site-to-site VPN connectivity to unauthorized network access and service disruptions that could compromise business continuity.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim: migrate affected IKE peers to RSA-PSS signatures (if supported by endpoint); restrict IKE traffic to known peer IP ranges only; enable detailed IKE authentication logging to detect forged AUTH payloads.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
widely available IPsec daemon but active mainly on Linux VPN gateways
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2013-7283 CRITICAL POC
9.3 Jan 09

Race condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora packages in libreswan 3.6 has

CVE-2019-12312 HIGH POC
7.5 May 24

In Libreswan 3.27 an assertion failure can lead to a pluto IKE daemon restart. Rated high severity (CVSS 7.5), this vuln

CVE-2023-23009 MEDIUM POC
6.5 Feb 21

Libreswan 4.9 allows remote attackers to cause a denial of service (assert failure and daemon restart) via crafted TS pa

CVE-2013-7294 MEDIUM POC
5.0 Jan 16

The ikev2parent_inI1outR1 function in pluto/ikev2_parent.c in libreswan before 3.7 allows remote attackers to cause a de

CVE-2016-3071 HIGH
7.5 Apr 18

Libreswan 3.16 might allow remote attackers to cause a denial of service (daemon restart) via an IKEv2 aes_xcbc transfor

CVE-2016-5361 HIGH
7.5 Jun 16

programs/pluto/ikev1.c in libreswan before 3.17 retransmits in initial-responder states, which allows remote attackers t

CVE-2016-5391 HIGH
7.5 Jun 13

libreswan before 3.18 allows remote attackers to cause a denial of service (NULL pointer dereference and pluto daemon re

CVE-2026-12413 HIGH
7.5 Jul 02

Denial of service in the Libreswan IPsec VPN's pluto daemon allows remote unauthenticated attackers to crash and repeate

CVE-2026-14957 HIGH
7.5 Sep 02

Unauthenticated remote denial of service in Libreswan's pluto IKE daemon allows any network attacker to repeatedly crash

CVE-2023-30570 HIGH
7.5 May 29

pluto in Libreswan before 4.11 allows a denial of service (responder SPI mishandling and daemon crash) via unauthenticat

CVE-2023-2295 HIGH
7.5 May 17

A vulnerability was found in the libreswan library. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2020-1763 HIGH
7.5 May 12

An out-of-bounds buffer read flaw was found in the pluto daemon of libreswan from versions 3.27 till 3.31 where, an unau

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy