CVE catalog

CVE-2026-14957

libreswan: CVE-2026-14957

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibreswansid5.2-2.5fixed
Debianlibreswanforky5.2-2.5fixed
Debianlibreswantrixie5.2-2.2vulnerable
Debianlibreswanbookworm4.10-2+deb12u1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibreswansourcesid5.2-2.5not yet assignedNot reported[1143067]
Debianlibreswansourceforky5.2-2.5not yet assignedNot reported[1143067]
Debianlibreswansourcetrixie(unfixed)not yet assignedNot reported[1143067]
Debianlibreswansourcebookworm(unfixed)not yet assignedNot reported[1143067]

[Debian bug #1143067]

Notes

[trixie] libreswan: Minor issue; can be fixed via point release

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libreswan]Affected
    Details (2)
    • 4.10-2+deb12u1 · amd64 · bookworm

      Affected

      dsa · libreswan · debian · bookworm; dsa · libreswan · debian · 12

    • 4.10-2+deb12u1 · arm64 · bookworm

      Affected

      dsa · libreswan · debian · bookworm; dsa · libreswan · debian · 12

[Debian 13 (Trixie)]

  • [libreswan]Affected
    Details (2)
    • 5.2-2.2 · amd64 · trixie

      Affected

      dsa · libreswan · debian · 13

    • 5.2-2.2 · arm64 · trixie

      Affected

      dsa · libreswan · debian · 13

Observed:

References