{
  "id": "CVE-2026-14957",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-14957",
  "published_at": "2026-09-02T02:19:00.114Z",
  "title": "FIPS mode assertion failure via malicious CERT payload",
  "vendor": "The Libreswan Project",
  "product": "libreswan",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-617",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "The Libreswan Project",
        "product": "libreswan",
        "ranges": [
          "\u003e= 3.0, \u003c= 5.3.1"
        ],
        "fixed_in": [
          "5.3.2"
        ]
      }
    ],
    "solutions": [
      "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/"
    ],
    "upgrade": [
      "Upgrade libreswan to 5.3.2 or later."
    ],
    "workarounds": [
      "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."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://libreswan.org/security/CVE-2026-14957/CVE-2026-14957.txt"
      },
      {
        "kind": "Patch",
        "url": "https://libreswan.org/security/CVE-2026-14957/"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
