ZeroHour

CVE-2026-14957

moderate

Unauthenticated DoS in Libreswan pluto daemon via malformed certificate in FIPS mode

CVSS 3.1
7.5 high
EPSS
<1%p45
Published
()
Modified
AI analysis

Libreswan's add_decoded_cert() function, when running in FIPS mode, calls CERT_ExtractPublicKey() and asserts the result is non-NULL, but that function can legitimately return NULL (for example, when an RSA public key has an exponent of 0), causing an unchecked-value/reachable-assertion defect (CWE-252/CWE-617). A remote, unauthenticated attacker can trigger it by sending a malformed X.509 certificate inside a CERT payload during an IKEv1 or IKEv2 handshake; because the CERT payload is processed before peer authentication, no credentials are required. The assertion causes the pluto daemon to abort and restart, and repeated exploitation results in a denial of service; remote code execution is not possible. Only deployments where both the OS and libreswan run in FIPS mode and at least one CA certificate is loaded in the NSS database are vulnerable, while configurations using only PreSharedKey authentication with no CA certificates loaded are not affected. No public proof-of-concept, KEV listing, or known exploitation exists; EPSS estimates a 0.6% chance of exploitation in the next 30 days.

What to do: Upgrade libreswan to the release that fixes CVE-2026-14957 as soon as your distribution publishes it, prioritizing FIPS-mode deployments that load CA certificates into the NSS database. As interim mitigations, disable FIPS mode if compliance does not require it, remove loaded CA certificates or restrict IKEv1/IKEv2 exposure to trusted networks, and check whether libreswan and the OS are running in FIPS mode before assessing impact.

Affected
Libreswan (libreswan project) Libreswan pluto daemon (IKEv1 and IKEv2)
Estimated exposure
moderateseveral thousand FIPS-mode VPN gateways (estimated subset of Libreswan's installed base on RHEL/Fedora/EL systems) — Libreswan is the default VPN daemon on RHEL/Fedora/EL distributions with a broad installed base of VPN gateways, but only the subset running the OS and libreswan in FIPS mode with CA certificates in the NSS database is exposed, plausibly…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In FIPS mode, Libreswan's add_decoded_cert() function calls CERT_ExtractPublicKey() and asserts that the result is not NULL. However, CERT_ExtractPublicKey() returns NULL when public key extraction fails, for example if the RSA exponent is set to 0. A remote attacker can send a malformed X.509 certificate in a CERT payload to trigger the assertion, causing the pluto daemon to abort and restart. Continued exploitation causes a denial of service. No remote code execution is possible. Both IKEv1 and IKEv2 are affected. The vulnerability is only exploitable when both the OS and libreswan are running in FIPS mode and at least one CA certificate is loaded. The CERT payload is processed before peer authentication, so no credentials are needed to exploit this. Configurations using only PreSharedKey (PSK) authentication with no CA certificates loaded in the NSS database are not vulnerable.

Weakness
CWE-252, CWE-617
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

In the news

No ingested article mentions this CVE yet.