CVE-2024-2357 (GCVE-0-2024-2357)
Vulnerability from cvelistv5
Published
2024-03-11 19:39
Modified
2025-02-13 17:39
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.
Impacted products
Show details on NVD website


{
   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)\"\" >> /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": {
      fkie_nvd: {
         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.\"}, {\"lang\": \"es\", \"value\": \"Se notific\\u00f3 a Libreswan Project sobre un problema que causaba que libreswan se reiniciara en algunos escenarios de retransmisi\\u00f3n de IKEv2 cuando una conexi\\u00f3n est\\u00e1 configurada para usar PreSharedKeys (authby=secret) y la conexi\\u00f3n no puede encontrar un secreto configurado coincidente. Cuando dicha conexi\\u00f3n se agrega autom\\u00e1ticamente al inicio usando la palabra clave auto=, puede causar fallas repetidas que conducen a una denegaci\\u00f3n de servicio.\"}]",
         id: "CVE-2024-2357",
         lastModified: "2024-11-21T09:09:35.103",
         metrics: "{\"cvssMetricV31\": [{\"source\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 6.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 2.8, \"impactScore\": 3.6}]}",
         published: "2024-03-11T20:15:07.867",
         references: "[{\"url\": \"https://libreswan.org/security/CVE-2024-2357\", \"source\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\", \"source\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\", \"source\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\", \"source\": \"d42dc95b-23f1-4e06-9076-20753a0fb0df\"}, {\"url\": \"https://libreswan.org/security/CVE-2024-2357\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
         sourceIdentifier: "d42dc95b-23f1-4e06-9076-20753a0fb0df",
         vulnStatus: "Awaiting Analysis",
      },
      nvd: "{\"cve\":{\"id\":\"CVE-2024-2357\",\"sourceIdentifier\":\"d42dc95b-23f1-4e06-9076-20753a0fb0df\",\"published\":\"2024-03-11T20:15:07.867\",\"lastModified\":\"2024-11-21T09:09:35.103\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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.\"},{\"lang\":\"es\",\"value\":\"Se notificó a Libreswan Project sobre un problema que causaba que libreswan se reiniciara en algunos escenarios de retransmisión de IKEv2 cuando una conexión está configurada para usar PreSharedKeys (authby=secret) y la conexión no puede encontrar un secreto configurado coincidente. Cuando dicha conexión se agrega automáticamente al inicio usando la palabra clave auto=, puede causar fallas repetidas que conducen a una denegación de servicio.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6}]},\"references\":[{\"url\":\"https://libreswan.org/security/CVE-2024-2357\",\"source\":\"d42dc95b-23f1-4e06-9076-20753a0fb0df\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\",\"source\":\"d42dc95b-23f1-4e06-9076-20753a0fb0df\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\",\"source\":\"d42dc95b-23f1-4e06-9076-20753a0fb0df\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\",\"source\":\"d42dc95b-23f1-4e06-9076-20753a0fb0df\"},{\"url\":\"https://libreswan.org/security/CVE-2024-2357\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
      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)\\\"\\\" >> /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",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.