Improper Verification of Cryptographic Signature Affecting libreswan/libreswan package, versions [,5.3.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBRESWANLIBRESWAN-17807923
  • published3 Jul 2026
  • disclosed3 Jul 2026
  • creditUnknown

Introduced: 3 Jul 2026

CVE-2026-50722  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade libreswan/libreswan to version 5.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in the RSA_authenticate_hash_signature_pkcs1_1_5_rsa function. An attacker can cause the daemon to abort and restart by sending a specially crafted IKEv2 AUTH payload with a shorter than expected hash, resulting in sustained service disruption through repeated exploitation.

Workaround

This vulnerability can be mitigated by configuring authby=ecdsa or authby=rsa-sha2 (or both via authby=ecdsa,rsa-sha2) to disallow the fallback of RSA PKCS#1 1.5. The leftauth= and rightauth= settings can be updated similarly if those are in use instead of authby.

CVSS Base Scores

version 4.0
version 3.1