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.
Published: 2026-09-02
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

Libreswan in FIPS mode contains a flaw in the add_decoded_cert() function. When processing an X.509 certificate in a CERT payload, the code calls CERT_ExtractPublicKey() and asserts that the result is non-NULL. If CERT_ExtractPublicKey() returns NULL, as when an RSA exponent is zero, the assertion fails, causing the pluto daemon to abort and restart. A remote attacker can craft such a malformed CERT payload to trigger this assertion over a publicly reachable IPsec interface. The resulting crash leads to a denial of service; there is no possibility of remote code execution.

Affected Systems

This vulnerability impacts installations of the libreswan IPsec daemon that run in FIPS mode and have at least one CA certificate loaded in the NSS database, and this effect only occurs when both the OS and libreswan are operating in FIPS mode. Both IKEv1 and IKEv2 traffic are affected. Configurations that use only PreSharedKey authentication without any CA certificates loaded are not vulnerable.

Risk and Exploitability

The CVSS score of 7.5 classifies the flaw as moderate-to-high severity. The EPSS score is not available, so the exact exploitation probability is unknown, but the attack requires only sending a crafted CERT payload over an open IPsec interface. The vulnerability is not listed in the CISA KEV catalog. The denial-of-service impact results from the pluto process aborting; repeated exploitation can keep the VPN service unavailable until it is manually or automatically restarted.

Generated by OpenCVE AI on September 2, 2026 at 04:14 UTC.

Remediation

Vendor Solution

Upgrade to libreswan 5.3.2 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org/security/CVE-2026-14957/


Vendor Workaround

No workaround is available unless one is willing to disable FIPS mode. If libreswan is only using PreSharedKey (PSK) authentication and the NSS database contains no CA certificates, CERT payloads are ignored and libreswan is not vulnerable.


OpenCVE Recommended Actions

  • Apply the official libreswan patch by upgrading to version 5.3.2 or later.
  • Disable FIPS mode or ensure no CA certificates are loaded when only PreSharedKey authentication is used (workaround).
  • Configure the daemon to reject certificates that fail strict validation or restrict acceptable certificates to a trusted CA list.
  • Implement process monitoring (e.g., systemd Restart=on-failure or a watchdog) so the libreswan process is automatically restarted after a crash.

Generated by OpenCVE AI on September 2, 2026 at 04:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 02:45:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title libreswan: badly formatted X.509 certificate can cause an assertion failure that crashes the daemon process FIPS mode assertion failure via malicious CERT payload
Weaknesses CWE-252

Tue, 21 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Libreswan
Libreswan libreswan
Vendors & Products Libreswan
Libreswan libreswan

Sat, 18 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE.
Title libreswan: badly formatted X.509 certificate can cause an assertion failure that crashes the daemon process
Weaknesses CWE-617
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Subscriptions

Libreswan Libreswan
cve-icon MITRE

Status: PUBLISHED

Assigner: libreswan

Published:

Updated: 2026-09-02T13:00:19.908Z

Reserved: 2026-07-07T13:39:23.932Z

Link: CVE-2026-14957

cve-icon Vulnrichment

Updated: 2026-09-02T13:00:15.062Z

cve-icon NVD

Status : Deferred

Published: 2026-09-02T03:16:47.490

Modified: 2026-09-09T15:44:20.970

Link: CVE-2026-14957

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-15T00:00:00Z

Links: CVE-2026-14957 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T04:15:05Z

Weaknesses