Skip to content
Heist/ feed
Back to feed
Unrated

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-38710

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-38710
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:09 UTC · Revision 1

Source evidence

CVE-2023-38710

core-osv · Original source

Published 25 Aug 2023, 00:00 UTC

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.

osv:CVE-2023-38710
Complete source record
{
  "id": "35662eb7961fec4a0d49bfb2e013355f4a60d0b86e1f66df8fa54d70a5156c32",
  "url": "https://osv.dev/vulnerability/CVE-2023-38710",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-38710",
    "summary": "An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.",
    "evidence": "osv:CVE-2023-38710",
    "products": [],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-38710",
      "aliases": [
        "CVE-2023-38710"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libreswan/libreswan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "329edadae4ee8a13dcaeecda5465d2d4d703e94f"
                },
                {
                  "fixed": "273ab05494d1a08c81bc4f84c38dfa7128fa239a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.12"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "cpe": "cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.20"
                      },
                      {
                        "fixed": "4.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.11",
            "v4.10",
            "v4.9",
            "v4.8",
            "v4.7",
            "v4.6",
            "v4.5",
            "v4.4",
            "v4.3",
            "v4.2",
            "v4.1",
            "v4.0",
            "v3.30",
            "v3.28",
            "v3.27",
            "v3.26",
            "v3.25",
            "v3.22",
            "v3.22dr1",
            "v3.21",
            "v3.20",
            "v3.21rc5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-38710.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.849793473Z",
      "provider": "osv",
      "references": [
        "https://github.com/libreswan/libreswan/tags",
        "https://libreswan.org/security/CVE-2023-38710/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38710.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-38710"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38710.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-38710",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499933,
  "published_at": "2023-08-25T00:00:00+00:00"
}