Skip to content
Fencer Intel
medium 6.5

CVE-2018-5388 json

In stroke_socket.c in strongSwan before 5.6.3, a missing packet length check could allow a buffer underflow, which may lead to resource exh…

published 2018-05-31 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17158

cvss
6.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.9%
EPSS 3.9% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

In stroke_socket.c in strongSwan before 5.6.3, a missing packet length check could allow a buffer underflow, which may lead to resource exhaustion and denial of service while reading from the socket.

Patch / fix

  • strongswan strongswan 5.6.3
  • strongswan Debian 14, Debian 13, Debian 12 5.6.3-1

debian advisories DEBIAN-CVE-2018-5388

  • strongswan Ubuntu 14.04 LTS 5.1.2-0ubuntu2.10
  • strongswan Ubuntu 16.04 LTS 5.3.5-1ubuntu3.7
  • strongswan Ubuntu 18.04 LTS 5.6.2-1ubuntu2.2

ubuntu advisories UBUNTU-CVE-2018-5388

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • strongswan SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +13 more 5.1.3-26.13.1
  • strongswan SLE Module for Package Hub 15, SLE Module for Basesystem 15 SP1, SLE Module for Basesystem 15 5.6.0-4.3.2

suse advisories SUSE-SU-2019:3266-1SUSE-SU-2019:3056-1

  • strongswan openSUSE Tumbleweed 5.9.0-1.9
  • strongswan openSUSE Leap 15.1 5.6.0-lp151.4.3.1
  • strongswan openSUSE Leap 15.0 5.6.0-lp150.3.3.1

opensuse advisories openSUSE-SU-2024:11411-1openSUSE-SU-2019:2598-1openSUSE-SU-2019:2594-1

  • strongswan Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 5.6.3-r0

alpine advisories ALPINE-CVE-2018-5388

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • strongswan Arch Linux 5.6.2-2

arch linux advisories AVG-710

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-5388 updated cvss 5.5

strongswan: integer underflow leads to buffer overflow and denial of service in stroke_socket.c

  • Red Hat Enterprise Linux 7 strongimcv
    affected: workaround, no fix planned “On Red Hat Enterprise Linux 7 only root has access to /var/run/charon.ctl so you need to be already root to exploit the vulnerability.”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-19-155-01 updated cvss 6.5

PHOENIX CONTACT PLCNext AXC F 2152

  • Phoenix Contact AXC F 2152 2404267 version 1.x, 1046568 (Starterkit) version 1.x
    affected: vendor fix, mitigation “Phoenix Contact recommends affected users update to firmware release 2019.0 LTS or later, update to PLCNext Engineer release 2019.0 LTS or later, and apply the following specific mitigations below:” phoenixcontact.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

Exploit prediction

3.92% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P

Affected products

  • strongSwan strongSwan

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.