CVE-2024-2357 (GCVE-0-2024-2357)
Vulnerability from cvelistv5 – Published: 2024-03-11 19:39 – Updated: 2025-02-13 17:39
VLAI?
Title
IKEv2 misconfiguration can cause libreswan to abort and restart
Summary
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.
Severity ?
6.5 (Medium)
CWE
- IKEv2 misconfiguration can cause libreswan to abort and restart
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan |
Unaffected:
3.0 , ≤ 4.1
(semver)
Affected: 4.2 , ≤ 4.12 (semver) Unaffected: 5.0 |
Credits
Andrew Vaughn
{
"containers": {
"adp": [
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2024-2357",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-03-12T16:21:48.798359Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "CWE-noinfo Not enough information",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-11-20T17:25:31.624Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-01T19:11:53.507Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "CVE-2024-2357",
"tags": [
"vendor-advisory",
"x_transferred"
],
"url": "https://libreswan.org/security/CVE-2024-2357"
},
{
"tags": [
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/"
},
{
"tags": [
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/"
},
{
"tags": [
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "libreswan",
"vendor": "The Libreswan Project (www.libreswan.org)",
"versions": [
{
"lessThanOrEqual": "4.1",
"status": "unaffected",
"version": "3.0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.12",
"status": "affected",
"version": "4.2",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.0"
}
]
}
],
"configurations": [
{
"lang": "en",
"value": "The vulnerability can only be triggered for connections with ikev2=yes and authby=secret"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Andrew Vaughn"
}
],
"datePublic": "2024-03-11T14:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "IKEv2 misconfiguration can cause libreswan to abort and restart",
"lang": "en"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-03-23T02:06:57.682Z",
"orgId": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"shortName": "libreswan"
},
"references": [
{
"name": "CVE-2024-2357",
"tags": [
"vendor-advisory"
],
"url": "https://libreswan.org/security/CVE-2024-2357"
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/"
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/"
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/"
}
],
"solutions": [
{
"lang": "en",
"value": "This issue is fixed in 4.13, 5.0 and all later versions."
}
],
"timeline": [
{
"lang": "en",
"time": "2024-02-08T00:00:00.000Z",
"value": "Issue reported publicly via https://github.com/libreswan/libreswan/issues/1609"
},
{
"lang": "en",
"time": "2024-02-14T00:00:00.000Z",
"value": "Workaround posted in the github issue"
},
{
"lang": "en",
"time": "2024-02-15T00:00:00.000Z",
"value": "Fix published (as issue was already public via githb issue)"
},
{
"lang": "en",
"time": "2024-03-09T00:00:00.000Z",
"value": "Advanced notice given to support customers and distributions"
},
{
"lang": "en",
"time": "2024-03-11T00:00:00.000Z",
"value": "CVE-2024-2357 published"
}
],
"title": "IKEv2 misconfiguration can cause libreswan to abort and restart",
"workarounds": [
{
"lang": "en",
"value": "As a workaround, one can place an unguessable long random default secret in /etc/ipsec.secrets, for example using the following command:\n\n echo -e \"# CVE-2024-2357 workaround\n: PSK \"$(openssl rand -hex 32)\"\" \u003e\u003e /etc/ipsec.secrets\n\nThis will ensure a PSK secret is always found, but it will always be wrong, and thus authentication will still properly fail."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
"assignerShortName": "libreswan",
"cveId": "CVE-2024-2357",
"datePublished": "2024-03-11T19:39:03.280Z",
"dateReserved": "2024-03-09T22:24:12.530Z",
"dateUpdated": "2025-02-13T17:39:47.355Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://libreswan.org/security/CVE-2024-2357\", \"name\": \"CVE-2024-2357\", \"tags\": [\"vendor-advisory\", \"x_transferred\"]}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-01T19:11:53.507Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-2357\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-03-12T16:21:48.798359Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-07-05T15:20:41.758Z\"}}], \"cna\": {\"title\": \"IKEv2 misconfiguration can cause libreswan to abort and restart\", \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"Andrew Vaughn\"}], \"affected\": [{\"vendor\": \"The Libreswan Project (www.libreswan.org)\", \"product\": \"libreswan\", \"versions\": [{\"status\": \"unaffected\", \"version\": \"3.0\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.1\"}, {\"status\": \"affected\", \"version\": \"4.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.12\"}, {\"status\": \"unaffected\", \"version\": \"5.0\"}], \"defaultStatus\": \"unaffected\"}], \"timeline\": [{\"lang\": \"en\", \"time\": \"2024-02-08T00:00:00.000Z\", \"value\": \"Issue reported publicly via https://github.com/libreswan/libreswan/issues/1609\"}, {\"lang\": \"en\", \"time\": \"2024-02-14T00:00:00.000Z\", \"value\": \"Workaround posted in the github issue\"}, {\"lang\": \"en\", \"time\": \"2024-02-15T00:00:00.000Z\", \"value\": \"Fix published (as issue was already public via githb issue)\"}, {\"lang\": \"en\", \"time\": \"2024-03-09T00:00:00.000Z\", \"value\": \"Advanced notice given to support customers and distributions\"}, {\"lang\": \"en\", \"time\": \"2024-03-11T00:00:00.000Z\", \"value\": \"CVE-2024-2357 published\"}], \"solutions\": [{\"lang\": \"en\", \"value\": \"This issue is fixed in 4.13, 5.0 and all later versions.\"}], \"datePublic\": \"2024-03-11T14:00:00.000Z\", \"references\": [{\"url\": \"https://libreswan.org/security/CVE-2024-2357\", \"name\": \"CVE-2024-2357\", \"tags\": [\"vendor-advisory\"]}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\"}], \"workarounds\": [{\"lang\": \"en\", \"value\": \"As a workaround, one can place an unguessable long random default secret in /etc/ipsec.secrets, for example using the following command:\\n\\n echo -e \\\"# CVE-2024-2357 workaround\\n: PSK \\\"$(openssl rand -hex 32)\\\"\\\" \u003e\u003e /etc/ipsec.secrets\\n\\nThis will ensure a PSK secret is always found, but it will always be wrong, and thus authentication will still properly fail.\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"description\": \"IKEv2 misconfiguration can cause libreswan to abort and restart\"}]}], \"configurations\": [{\"lang\": \"en\", \"value\": \"The vulnerability can only be triggered for connections with ikev2=yes and authby=secret\"}], \"providerMetadata\": {\"orgId\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\", \"shortName\": \"libreswan\", \"dateUpdated\": \"2024-03-23T02:06:57.682Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2024-2357\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-13T17:39:47.355Z\", \"dateReserved\": \"2024-03-09T22:24:12.530Z\", \"assignerOrgId\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\", \"datePublished\": \"2024-03-11T19:39:03.280Z\", \"assignerShortName\": \"libreswan\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…