CVE-2024-2357
IKEv2 misconfiguration can cause libreswan to abort and restart
Reported by libreswan · Published March 11, 2024
The Libreswan Project was notified of an issue causing libreswan to restart under some IKEv2 retransmit scenarios when a connection is configured to use PreSharedKeys (authby=secret) and the connection cannot find a matching configured secret. When such a connection is automatically added on startup using the auto= keyword, it can cause repeated crashes leading to a Denial of Service.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libreswan | Amazon Linux | 4.12-3.amzn2023.0.1 |
| libreswan | Alpine | 4.15-r0 |
| libreswan | The Libreswan Project (www.libreswan.org) | 4.12 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | 3.0, 4.2, 5.0 |
| amazon:2023 | libreswan | 0 |
| alpine | libreswan | 0 |
| The Libreswan Project (www.libreswan.org) | libreswan | 4.2, 5.0, 3.0 |
Timeline
- Mar 11, 2024 CVE Published
- Mar 12, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Feb 13, 2025 CVE Updated
- Jun 2, 2026 Security Advisory (8 in total, the first dated here)
- Oct 30, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-2357
vulnetix vdb fixes CVE-2024-2357
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-2357/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- CVE-2024-2357 vendor-advisory