CVE-2026-14957: FIPS mode assertion failure via malicious CERT payload

Published Jul 17, 2026
·
Updated

FIPS mode assertion failure via malicious CERT payload

Other sources

In FIPS mode, Libreswan's adddecodedcert() function calls CERTExtractPublicKey() and asserts that the result is not NULL. However, CERTExtractPublicKey() 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.

NVD

Libreswan contains a reachable assertion in the X.509 certificate processing path when operating in FIPS mode. After calling CERTExtractPublicKey(), the returned public key is asserted to be non-NULL, although the function may legitimately return NULL if public key extraction fails (for example, when processing a certificate with an RSA exponent of zero). An unauthenticated remote attacker can send a specially crafted CERT payload during an IKEv1 or IKEv2 exchange to trigger the assertion and terminate the daemon, resulting in a denial of service. The issue is only reachable when Libreswan is running in FIPS mode and certificate-based authentication is in use with at least one CA certificate loaded in the Libreswan NSS database; deployments using only Pre-Shared Key (PSK) authentication without loaded CA certificates are not affected.

Red Hat

Affected Software

3 affected components
libreswan Libreswan pluto daemon
libreswan Libreswan pluto daemon (IKEv1)
libreswan Libreswan pluto daemon (IKEv2)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libreswan to a version that resolves this vulnerability.

    Fixed in 5.3.2
  2. Upgrade

    Upgrade libreswan to a version that resolves this vulnerability.

    Fixed in 4.15

Event History

Jul 17, 2026
Data Sourced
via Red Hat·03:07 PM
DescriptionSeverityAffected Software
Sep 2, 2026
CVE Published
via MITRE·02:19 AM
Data Sourced
via MITRE·02:19 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·03:16 AM
DescriptionSeverityWeakness
Sep 3, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-14957?

The severity of CVE-2026-14957 is classified as medium with a score of 4.

2

What does CVE-2026-14957 affect?

CVE-2026-14957 affects the Libreswan software when operating in FIPS mode.

3

What is the primary issue described in CVE-2026-14957?

CVE-2026-14957 describes a reachable assertion in the X.509 certificate processing path which can lead to issues if public key extraction fails.

4

How can I mitigate the risks associated with CVE-2026-14957?

To mitigate the risks of CVE-2026-14957, ensure that you handle NULL values correctly in the public key extraction process.

5

Is there a patch available for CVE-2026-14957?

Information regarding mitigation and potential patches for CVE-2026-14957 should be checked in the official releases or errata from the Libreswan project.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203