Skip to content
Heist/ feed
Back to feed
High

libreswan — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-77207

Libreswan has a null pointer dereference bug in the PKCS#7 handling code for IKE certificate authentication. When libreswan decodes an IKE CERT payload of type CERT_PKCS7_WRAPPED_X509, it guards the PKCS#7 blob with SEC_PKCS7ContainsCertsOrCrls() and then iterates the certificate list with SEC_PKCS7GetCertificateList(). The two NSS APIs disagree on a SignedData that carries a CRL but no certificates: ContainsCertsOrCrls() returns PR_TRUE (there is a CRL), so the guard passes, but GetCertificateList() returns NULL (there are no certificates). This causes libreswan to dereference a null pointer leading to a crash and restart. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. No remote code execution is possible. Continued exploitation can cause a denial of service.

Products
libreswan
Affected versions
4.10-2, 4.10-2+deb12u1, 4.11-1, 4.12-1, 4.12-2, 4.12-3, 4.14-1, 4.14-1.1, 4.15-1, 5.0~rc2-1, 5.0~rc2-2, 5.2-1, 5.2-2, 5.2-2.1, 5.2-2.2, 5.2-2.3, 5.2-2.4, 5.2-2.5
Fixed versions
Not specified
CVEs
CVE-2026-77207
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 23:02 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-77207

core-osv · Original source

Published 13 Oct 2026, 22:18 UTC

Libreswan has a null pointer dereference bug in the PKCS#7 handling code for IKE certificate authentication. When libreswan decodes an IKE CERT payload of type CERT_PKCS7_WRAPPED_X509, it guards the PKCS#7 blob with SEC_PKCS7ContainsCertsOrCrls() and then iterates the certificate list with SEC_PKCS7GetCertificateList(). The two NSS APIs disagree on a SignedData that carries a CRL but no certificates: ContainsCertsOrCrls() returns PR_TRUE (there is a CRL), so the guard passes, but GetCertificateList() returns NULL (there are no certificates). This causes libreswan to dereference a null pointer leading to a crash and restart. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. No remote code execution is possible. Continued exploitation can cause a denial of service.

osv:DEBIAN-CVE-2026-77207

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

Complete source record
{
  "id": "517371c1238daf753efd9150787e791746d2c7092eb16d1937bf7476ede95cd2",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-77207",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-77207",
    "summary": "Libreswan has a null pointer dereference bug in the PKCS#7 handling code for IKE certificate authentication. When libreswan decodes an IKE CERT payload of type CERT_PKCS7_WRAPPED_X509, it guards the PKCS#7 blob with SEC_PKCS7ContainsCertsOrCrls() and then iterates the certificate list with SEC_PKCS7GetCertificateList(). The two NSS APIs disagree on a SignedData that carries a CRL but no certificates: ContainsCertsOrCrls() returns PR_TRUE (there is a CRL), so the guard passes, but GetCertificateList() returns NULL (there are no certificates). This causes libreswan to dereference a null pointer leading to a crash and restart. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. No remote code execution is possible. Continued exploitation can cause a denial of service.",
    "evidence": "osv:DEBIAN-CVE-2026-77207",
    "products": [
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.10-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.10-2+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.11-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.12-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.12-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.12-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.14-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.14-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.15-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.0~rc2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.0~rc2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2-2.5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.2-2.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.2-2.4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.2-2.5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libreswan",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.2-2.2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.2-2.3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.2-2.4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.2-2.5",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-77207",
      "aliases": [
        "DEBIAN-CVE-2026-77207"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/debian/libreswan?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "4.10-2",
            "4.10-2+deb12u1",
            "4.11-1",
            "4.12-1",
            "4.12-2",
            "4.12-3",
            "4.14-1",
            "4.14-1.1",
            "4.15-1",
            "5.0~rc2-1",
            "5.0~rc2-2",
            "5.2-1",
            "5.2-2",
            "5.2-2.1",
            "5.2-2.2",
            "5.2-2.3",
            "5.2-2.4",
            "5.2-2.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77207.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/debian/libreswan?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "5.2-2.2",
            "5.2-2.3",
            "5.2-2.4",
            "5.2-2.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77207.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libreswan",
            "purl": "pkg:deb/debian/libreswan?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "5.2-2.2",
            "5.2-2.3",
            "5.2-2.4",
            "5.2-2.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77207.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:33.020831538Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-77207"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-77207"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-77207",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 417564,
  "published_at": "2026-10-13T22:18:26.04+00:00"
}