Home / The Libreswan Project (www.libreswan.org) / libreswan / CVE-2024-2357
CVE-2024-2357: is it exploited, and which versions of The Libreswan Project (www.libreswan.org) libreswan are affected and fixed?
CVE-2024-2357 is an IKEv2 misconfiguration can cause libreswan to abort and restart vulnerability in The Libreswan Project (www.libreswan.org) libreswan. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: libreswan from 4.2 through 4.12 (CVE record by libreswan). Fixed in 3.0 and 5.0 (CVE record by libreswan). Severity: Medium (6.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2024-2357?
IKEv2 misconfiguration can cause libreswan to abort and restart
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.
From the CVE record by libreswan, last updated February 13, 2025, 17:39 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | from 4.2 through 4.12 | 3.0, 5.0 |
As the CVE record by libreswan states it, last updated February 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2024-2357?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-2357 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 12, 2024)
- EPSS
- 0.95% probability of exploitation activity in the next 30 days, percentile 62.4 (FIRST EPSS, scores of December 2, 2026)
How do I fix it? (from the CVE record)
This issue is fixed in 4.13, 5.0 and all later versions.
Is there a workaround? (from the CVE record)
As a workaround, one can place an unguessable long random default secret in /etc/ipsec.secrets, for example using the following command: echo -e "# CVE-2024-2357 workaround : PSK "$(openssl rand -hex 32)"" >> /etc/ipsec.secrets This will ensure a PSK secret is always found, but it will always be wrong, and thus authentication will still properly fail.
Where are the vendor advisories and references?
- CVE-2024-2357 vendor-advisory
- https://lists.fedoraproject.org/archives/list/[email protected]/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/
Who found and reported it?
- Andrew Vaughn (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- March 9, 2024
- Published
- March 11, 2024, 19:39 UTC
- CVE record updated
- February 13, 2025, 17:39 UTC by libreswan
- NVD
- Deferred, last modified June 17, 2026, 07:24 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect libreswan?
- Apr 11, 2024CVE-2024-3652 The Libreswan Project (www.libreswan.org) libreswan: resource not released
Questions about CVE-2024-2357
Is CVE-2024-2357 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.95% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of The Libreswan Project (www.libreswan.org) libreswan are affected by CVE-2024-2357?
libreswan from 4.2 through 4.12, per the CVE record by libreswan. The tables above give every range the sources list.
Which version fixes CVE-2024-2357?
3.0 and 5.0, per the CVE record by libreswan. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-2357?
Medium (6.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-2357?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.