Skip to content
Heist/ feed
Back to feed
Medium

libreswan, strongswan — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2018-5389

The Internet Key Exchange v1 main mode is vulnerable to offline dictionary or brute force attacks. Reusing a key pair across different versions and modes of IKE could lead to cross-protocol authentication bypasses. It is well known, that the aggressive mode of IKEv1 PSK is vulnerable to offline dictionary or brute force attacks. For the main mode, however, only an online attack against PSK authentication was thought to be feasible. This vulnerability could allow an attacker to recover a weak Pre-Shared Key or enable the impersonation of a victim host or network.

Products
libreswan, strongswan
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, 5.9.11-1, 5.9.11-2, 5.9.12-1, 5.9.13-1, 5.9.13-2, 5.9.8-5, 5.9.8-5+deb12u1, 5.9.8-5+deb12u2, 5.9.8-5+deb12u3, 5.9.8-5+deb12u4, 5.9.8-5+deb12u5, 6.0.0-1, 6.0.0-2, 6.0.1-1, 6.0.1-2, 6.0.1-3, 6.0.1-4, 6.0.1-5, 6.0.1-6, 6.0.1-6+deb13u1, 6.0.1-6+deb13u2, 6.0.1-6+deb13u4, 6.0.1-6+deb13u5, 6.0.1-6+deb13u6, 6.0.1-6+deb13u7, 6.0.2-1, 6.0.3-1, 6.0.4-1, 6.0.5-1, 6.0.6-1, 6.0.7-1, 6.1.0-1, 6.1.0-2
Fixed versions
Not specified
CVEs
CVE-2018-5389
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:30 UTC · Revision 1

Source evidence

DEBIAN-CVE-2018-5389

core-osv · Original source

Published 6 Sept 2018, 21:29 UTC

The Internet Key Exchange v1 main mode is vulnerable to offline dictionary or brute force attacks. Reusing a key pair across different versions and modes of IKE could lead to cross-protocol authentication bypasses. It is well known, that the aggressive mode of IKEv1 PSK is vulnerable to offline dictionary or brute force attacks. For the main mode, however, only an online attack against PSK authentication was thought to be feasible. This vulnerability could allow an attacker to recover a weak Pre-Shared Key or enable the impersonation of a victim host or network.

osv:DEBIAN-CVE-2018-5389

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

libreswan

Fixed versions: Not specified

strongswan

Fixed versions: Not specified

strongswan

Fixed versions: Not specified

strongswan

Fixed versions: Not specified

Complete source record
{
  "id": "72a6a8998fb5c4db5ab335e313ceca2063911d79f872e12cb46cdae9a2bff5bb",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-5389",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2018-5389",
    "summary": "The Internet Key Exchange v1 main mode is vulnerable to offline dictionary or brute force attacks. Reusing a key pair across different versions and modes of IKE could lead to cross-protocol authentication bypasses. It is well known, that the aggressive mode of IKEv1 PSK is vulnerable to offline dictionary or brute force attacks. For the main mode, however, only an online attack against PSK authentication was thought to be feasible. This vulnerability could allow an attacker to recover a weak Pre-Shared Key or enable the impersonation of a victim host or network.",
    "evidence": "osv:DEBIAN-CVE-2018-5389",
    "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"
          }
        ]
      },
      {
        "name": {
          "value": "strongswan",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.9.11-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.11-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.12-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.13-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.13-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5+deb12u1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5+deb12u2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5+deb12u3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5+deb12u4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.9.8-5+deb12u5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.0-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.1-6",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.3-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.4-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.5-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.6-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.7-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.1.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.1.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "strongswan",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.1-6",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u6",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.1-6+deb13u7",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.2-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.3-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.4-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.5-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.6-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.0.7-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.1.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.1.0-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "strongswan",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.1-6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.2-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.3-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.4-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.5-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.6-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.7-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.1.0-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.1.0-2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2018-5389",
      "aliases": [
        "DEBIAN-CVE-2018-5389"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "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-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "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-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "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-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "strongswan",
            "purl": "pkg:deb/debian/strongswan?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "5.9.11-1",
            "5.9.11-2",
            "5.9.12-1",
            "5.9.13-1",
            "5.9.13-2",
            "5.9.8-5",
            "5.9.8-5+deb12u1",
            "5.9.8-5+deb12u2",
            "5.9.8-5+deb12u3",
            "5.9.8-5+deb12u4",
            "5.9.8-5+deb12u5",
            "6.0.0-1",
            "6.0.0-2",
            "6.0.1-1",
            "6.0.1-2",
            "6.0.1-3",
            "6.0.1-4",
            "6.0.1-5",
            "6.0.1-6",
            "6.0.2-1",
            "6.0.3-1",
            "6.0.4-1",
            "6.0.5-1",
            "6.0.6-1",
            "6.0.7-1",
            "6.1.0-1",
            "6.1.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "strongswan",
            "purl": "pkg:deb/debian/strongswan?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "6.0.1-6",
            "6.0.1-6+deb13u1",
            "6.0.1-6+deb13u2",
            "6.0.1-6+deb13u4",
            "6.0.1-6+deb13u5",
            "6.0.1-6+deb13u6",
            "6.0.1-6+deb13u7",
            "6.0.2-1",
            "6.0.3-1",
            "6.0.4-1",
            "6.0.5-1",
            "6.0.6-1",
            "6.0.7-1",
            "6.1.0-1",
            "6.1.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "strongswan",
            "purl": "pkg:deb/debian/strongswan?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "6.0.1-6",
            "6.0.2-1",
            "6.0.3-1",
            "6.0.4-1",
            "6.0.5-1",
            "6.0.6-1",
            "6.0.7-1",
            "6.1.0-1",
            "6.1.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-5389.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        }
      ],
      "modified": "2026-10-23T18:03:22.288743975Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-5389"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2018-5389"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-5389",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421302,
  "published_at": "2018-09-06T21:29:00.22+00:00"
}