Impact
The vulnerability resides in the RSA_authenticate_hash_signature_raw_rsa function within Libreswan. An attacker can craft an IKEv1 SIG payload that, when encoded with PKCS #1 RSA Encryption as defined in RFC 2313, bypasses the authentication hash length check. This allows the attacker to forge the signature, impersonate a peer, or deliver a truncated hash that triggers an assertion, causing the daemon to abort. The abort leads to a restart loop that results in a sustained denial of service. No remote code execution is possible and X.509 peer verification remains unaffected.
Affected Systems
Libreswan VPN installations running any version older than 5.3.1 are affected. The issue also exists in the 4.15 release, for which a patch is available. The official fix is to upgrade to version 5.3.1 or later; patches for 4.15 and 5.3 can be applied if an upgrade cannot be performed immediately.
Risk and Exploitability
The flaw carries a CVSS score of 8.1, while the EPSS probability is below 1%. Because the exploit relies on sending a crafted IKEv1 packet over the network, attackers must reach the VPN endpoint. Repeated crashes can produce a prolonged denial of service, but impersonation requires precise manipulation of small public exponents such as e=3. The vulnerability is not listed in the CISA KEV catalog, and no remote code execution is feasible, so it represents a high‑severity operational risk rather than a system compromise. Until the vendor’s update is applied or traffic is shifted to IKEv2, the risk remains.
OpenCVE Enrichment