cve.bz

CVE-2018-5388 Out-of-bounds Write

6.5 mediumEPSS 3.9%

Medium (6.5). EPSS 3.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
3.9% (unchanged from 3.9% a week ago; 3.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-124 Buffer Underwrite (Buffer Underrun)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-5388 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-5388?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-5388?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-5388 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
strongSwanfrom 5.6.3 before 5.6.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8strongswan5.2.1-6+deb8u6DSA-4229-1
Debian9strongswan5.5.1-4+deb9u2DSA-4229-1
Debian12, 13, 14strongswan5.6.3-1DEBIAN-CVE-2018-5388
Ubuntu14.04:LTSstrongswan5.1.2-0ubuntu2.10UBUNTU-CVE-2018-5388 USN-3771-1
Ubuntu16.04:LTSstrongswan5.3.5-1ubuntu3.7UBUNTU-CVE-2018-5388 USN-3771-1
Ubuntu18.04:LTSstrongswan5.6.2-1ubuntu2.2UBUNTU-CVE-2018-5388 USN-3771-1
SUSEEnterprise Storage 5, Linux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP1-LTSS and 13 morestrongswan5.1.3-26.13.1SUSE-SU-2019:3266-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Package Hub 15strongswan5.6.0-4.3.2SUSE-SU-2019:3056-1
openSUSELeap 15.0strongswan5.6.0-lp150.3.3.1openSUSE-SU-2019:2594-1
openSUSELeap 15.1strongswan5.6.0-lp151.4.3.1openSUSE-SU-2019:2598-1
openSUSETumbleweedstrongswan5.9.0-1.9openSUSE-SU-2024:11411-1
Alpinev3.7, v3.8, v3.9 and 15 morestrongswan5.6.3-r0ALPINE-CVE-2018-5388

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7strongimcvWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-5388.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-19-155-01PHOENIX CONTACT PLCNext AXC F 21522019-06-04Commercial FacilitiesAXC F 2152: article number 2404267 version 1.x, AXC F 2152: article number 1046568 (Starterkit) version 1.xnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON