Skip to content
Heist/ feed
Back to feed
High

libreswan — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-2295

A vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.

Products
libreswan
Affected versions
3.20-7build1, 3.21-2, 3.22-1, 3.22-2, 3.22-3, 3.22-4, 3.23-1, 3.23-4, 3.29-2, 3.29-2build1, 3.32-3ubuntu3, 4.11-1ubuntu1, 4.12-1ubuntu1, 4.14-1ubuntu1, 4.14-1ubuntu2, 5.2-2.2ubuntu1, 5.2-2.2ubuntu2
Fixed versions
Not specified
CVEs
CVE-2023-2295
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:48 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-2295

core-osv · Original source

Published 17 May 2023, 23:15 UTC

A vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.

osv:UBUNTU-CVE-2023-2295

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

Complete source record
{
  "id": "6400ad5d87619f30946e4772b23f73221d4f81cf6ced0aae8c3ba9965d0264b0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-2295",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-2295",
    "summary": "A vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.",
    "evidence": "osv:UBUNTU-CVE-2023-2295",
    "products": [
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.20-7build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.21-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.22-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.23-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.23-4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.29-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.29-2build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.32-3ubuntu3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.11-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.12-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.14-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.14-1ubuntu2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.14-1ubuntu2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "5.2-2.2ubuntu1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2ubuntu2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2ubuntu1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.2-2.2ubuntu2",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2023-2295",
      "aliases": [
        "UBUNTU-CVE-2023-2295"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.20-7build1",
            "3.21-2",
            "3.22-1",
            "3.22-2",
            "3.22-3",
            "3.22-4",
            "3.23-1",
            "3.23-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.23-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.29-2",
            "3.29-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.29-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.32-3ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "3.32-3ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.11-1ubuntu1",
            "4.12-1ubuntu1",
            "4.14-1ubuntu1",
            "4.14-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "4.14-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.14-1ubuntu2",
            "5.2-2.2ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "5.2-2.2ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.2-2.2ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "5.2-2.2ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/ubuntu/libreswan?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.2-2.2ubuntu1",
            "5.2-2.2ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2295.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libreswan",
                "binary_version": "5.2-2.2ubuntu2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:04.212726375Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-2295"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-2295",
        "https://rhn.redhat.com/errata/RHSA-2023-3107.html",
        "https://www.cve.org/CVERecord?id=CVE-2023-2295"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-2295",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354751,
  "published_at": "2023-05-17T23:15:00+00:00"
}