CVE-2026-14957 Details
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.
A denial-of-service vulnerability has been identified in Libreswan versions 3.0 through 5.3.1, when both the operating system and Libreswan are running in FIPS mode. The issue arises in the add_decoded_cert() function, where an assertion checks that the public key extraction from an X.509 certificate is successful. However, CERT_ExtractPublicKey() can return NULL if the extraction fails, such as when the RSA exponent is zero. A remote attacker can exploit this by sending a malformed certificate in a CERT payload, triggering the assertion failure, which causes the pluto daemon to crash and restart. This exploitation can be repeated to create a sustained denial-of-service condition. The vulnerability affects both IKEv1 and IKEv2 protocols, but only in configurations that have at least one CA certificate loaded and are not using PreSharedKey (PSK) authentication.
Users can upgrade to Libreswan version 5.3.2 or later to address this vulnerability. For those using Libreswan versions 4.15 or 5.3, patches are available.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 2, 2026CISA-ADP
Assessed Sep 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://libreswan.org/security/CVE-2026-14957/ | Libreswan Project | AdvisoryBundleRemedyVendor |
| https://libreswan.org/security/CVE-2026-14957/CVE-2026-14957.txt | Libreswan Project | AdvisoryExploitRemedySource CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-252 | Unchecked Return Value | Libreswan Project |
| CWE-617 | Reachable Assertion | Libreswan Project |
Affected Products
| Product | Versions |
|---|---|
| Libreswan | >= 3.0, <= 5.3.1 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 2, 2026 | CVE Modified | CISA-ADP |
| Sep 2, 2026 | New CVE Received | Libreswan Project |
Volerion