CVE catalog

CVE-2026-50721

Libreswan, via the function RSA_authenticate_hash_signature_raw_rsa(), did not correctly verify the length of the authentication hash when the SIG payload of an IKEv1 packet was encoded using PKCS #1

[CVE catalog]

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

Libreswan, via the function RSA_authenticate_hash_signature_raw_rsa(), did not correctly verify the length of the authentication hash when the SIG payload of an IKEv1 packet was encoded using PKCS #1 RSA Encryption as per RFC 2313. A remote attacker can use a variation on the Bleichenbacher attack to forge the SIG payload when small public exponents are being used (e.g., e=3), which could lead to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the SIG payload, could trigger an assertion leading to denial-of-service. The daemon aborts and restarts; continued exploitation causes sustained denial of service. Remote code execution is not possible. X.509 certificate verifications of remote IKE peers are not affected.

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
CpelibreswanNot reportedNot reportedvulnerable
CpelibreswanNot reported5.3.1fixed
CpelibreswanNot reported5.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibreswansourcesid5.2-2.5not yet assignedNot reported[1141390]
Debianlibreswansourceforky5.2-2.5not yet assignedNot reported[1141390]
Debianlibreswansourcetrixie(unfixed)not yet assignedNot reported[1141390]
Debianlibreswansourcebookworm(unfixed)not yet assignedNot reported[1141390]
CpelibreswancpeNot reported5.3.1Not reportedNot reportedNot reported
CpelibreswancpeNot reported5.3.1Not reportedNVD-CVE-2026-50721Not reported

[Debian bug #1141390]

Notes

[trixie] libreswan: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Affected

      nvd · libreswan · debian · bookworm; nvd · libreswan · debian · 12

    • 4.10-2+deb12u1 · arm64 · bookworm

      Affected

      nvd · libreswan · debian · bookworm; nvd · libreswan · debian · 12

[Debian 13 (Trixie)]

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

      Affected

      nvd · libreswan · debian · 13

    • 5.2-2.2 · arm64 · trixie

      Affected

      nvd · libreswan · debian · 13

Observed:

References