IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload
Libreswan, via the function RSA_authenticate_hash_signature_pkcs1_1_5_rsa(), did not correctly verify the DER encoding of the ASN.1 digest when the IKEv2 AUTH payload was encoded using RSASSA-PKCS1-v1_5 (RFC 8017). A remote attacker can use a variation on the Bleichenbacher attack to forge the AUTH payload when small public exponents are used (e.g., e=3), leading to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the AUTH 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 the remote IKE peer are not affected.
Problem Types
| Type | CWE ID | Description |
|---|
| CWE | CWE-347 | CWE-347: Improper Verification of Cryptographic Signature |
| CWE | CWE-617 | CWE-617: Reachable Assertion |
Type: CWE
Description: CWE-347: Improper Verification of Cryptographic Signature
Type: CWE
Description: CWE-617: Reachable Assertion
Metrics
| Version | Base score | Base severity | Vector |
|---|
| 3.1 | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Version: 3.1
Base score: 7.5
Base severity: HIGH
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Version: 3.1
Base score: 8.1
Base severity: HIGH
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
vendorSeverity
description:
Vendor-assessed severity: Medium. Authentication bypass requires weak RSA exponents (e=3) which have been disallowed by most cryptographic libraries for over a decade. DoS is mitigated by automatic daemon restart.
Impacts
| CAPEC ID | Description |
|---|
| CAPEC-463 | Denial of Service via assertion failure in pluto daemon when processing malformed RSA PKCS#1 v1.5 AUTH payloads |
| CAPEC-473 | Authentication bypass via Bleichenbacher-style signature forgery when weak RSA exponents (e.g., e=3) are in use |
Description: Denial of Service via assertion failure in pluto daemon when processing malformed RSA PKCS#1 v1.5 AUTH payloads
Description: Authentication bypass via Bleichenbacher-style signature forgery when weak RSA exponents (e.g., e=3) are in use
Timeline
| Event | Date |
|---|
| Libreswan notified of the issue via security@libreswan.org | 2026-03-24 00:00:00 |
| Advanced notice given to supported customers and distributions | 2026-06-16 00:00:00 |
| Public announcement and release of libreswan 5.3.1 | 2026-06-24 00:00:00 |
Event: Libreswan notified of the issue via security@libreswan.org
Date: 2026-03-24 00:00:00
Event: Advanced notice given to supported customers and distributions
Date: 2026-06-16 00:00:00
Event: Public announcement and release of libreswan 5.3.1
Date: 2026-06-24 00:00:00