CVE-2018-17540
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
CVE-2018-17540- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
CVE-2018-17540- Updated
- 2026-11-02
EUVDEUVD-2018-9293 No score
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
EUVD-2018-9293- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7wxf-w2jw-5jhr
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
GHSA-7wxf-w2jw-5jhr- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-17540
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
ALPINE-CVE-2018-17540- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
CVE-2018-17540- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2018-17540
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
DEBIAN-CVE-2018-17540- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-17540
7.5
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
- Record
UBUNTU-CVE-2018-17540- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2019:2594-1 No score
Security update for strongswan
This update for strongswan fixes the following issues:
Security issues fixed:
- CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
- CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
- CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
- CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2019:2594-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2019:2598-1 No score
Security update for strongswan
This update for strongswan fixes the following issues:
Security issues fixed:
- CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
- CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
- CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
- CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2019:2598-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11411-1 No score
strongswan-5.9.0-1.9 on GA media
These are all security issues fixed in the strongswan-5.9.0-1.9 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11411-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:3056-1 No score
Security update for strongswan
This update for strongswan fixes the following issues:
Security issues fixed:
- CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
- CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
- CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
- CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).
- Record
SUSE-SU-2019:3056-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:3266-1 No score
Security update for strongswan
This update for strongswan provides the following fixes:
Security issues fixed:
- CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
- CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
- CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
- CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).
Other issues addressed:
- Fixed some client fails when the scep server URL is used with HTTPS protocol (bsc#1071853).
- Reject Diffie-Hellman key exchanges using primes smaller than 1024 bit.
- Handle unexpected informational message from SonicWall. (bsc#1009254)
- Record
SUSE-SU-2019:3266-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:14887-1 No score
Security update for strongswan
This update for strongswan fixes the following issues:
- CVE-2018-16151: Fixed flaws in gmp plugin that could lead to authorization bypass. (bsc#1107874)
- CVE-2018-16152: Fixed flaws in gmp plugin that could lead to authorization bypass. (bsc#1107874)
- CVE-2018-17540: Fixed insufficient input validation in gmp plugin. (bsc#1109845)
- CVE-2021-45079: Fixed authentication bypass in EAP authentication. (bsc#1194471)
- Record
SUSE-SU-2022:14887-1- Updated
- 2026-11-02
OSVUSN-3774-1 No score
strongswan vulnerability
It was discovered that strongSwan incorrectly handled signature validation in the gmp plugin. A remote attacker could use this issue to cause strongSwan to crash, resulting in a denial of service, or possibly execute arbitrary code.
- Record
USN-3774-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
strongswanAlpine:v3.10 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.11 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.12 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.13 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.14 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.15 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.16 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.17 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.18 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.19 |
before 5.7.1-r0 | 5.7.1-r0 |
Show 42 moreShow less
| Package | Affected | Fixed |
|---|---|---|
strongswanAlpine:v3.20 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.21 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.22 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.23 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.24 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanAlpine:v3.5 |
before 5.5.3-r3 | 5.5.3-r3 |
strongswanAlpine:v3.6 |
before 5.5.3-r3 | 5.5.3-r3 |
strongswanAlpine:v3.7 |
before 5.6.3-r2 | 5.6.3-r2 |
strongswanAlpine:v3.8 |
before 5.6.3-r3 | 5.6.3-r3 |
strongswanAlpine:v3.9 |
before 5.7.1-r0 | 5.7.1-r0 |
strongswanDebian:12 |
before 5.7.1-1 | 5.7.1-1 |
strongswanDebian:13 |
before 5.7.1-1 | 5.7.1-1 |
strongswanDebian:14 |
before 5.7.1-1 | 5.7.1-1 |
strongswanDebian:8 |
before 5.2.1-6+deb8u8, plus listed versions 5.2.1-65.2.1-6+deb8u15.2.1-6+deb8u1~bpo70+15.2.1-6+deb8u25.2.1-6+deb8u2~bpo70+1 Show 5 moreShow less5.2.1-6+deb8u35.2.1-6+deb8u45.2.1-6+deb8u55.2.1-6+deb8u65.2.1-6+deb8u7 |
5.2.1-6+deb8u8 |
strongswanDebian:9 |
before 5.5.1-4+deb9u4, plus listed versions 5.5.1-45.5.1-4+deb9u15.5.1-4+deb9u25.5.1-4+deb9u3 |
5.5.1-4+deb9u4 |
strongswanSUSE:Linux Enterprise Module for Basesystem 15 From an advisory covering 5 CVEs |
before 5.6.0-4.3.2 | 5.6.0-4.3.2 |
strongswanSUSE:Linux Enterprise Module for Basesystem 15 SP1 From an advisory covering 5 CVEs |
before 5.6.0-4.3.2 | 5.6.0-4.3.2 |
strongswanSUSE:Linux Enterprise Module for Package Hub 15 From an advisory covering 5 CVEs |
before 5.6.0-4.3.2 | 5.6.0-4.3.2 |
strongswanSUSE:OpenStack Cloud 7 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:OpenStack Cloud 8 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Desktop 12 SP4 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server for SAP Applications 12 SP1 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server for SAP Applications 12 SP2 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP1-LTSS From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP2-LTSS From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP2-BCL From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP3-LTSS From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP3-BCL From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP4 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server for SAP Applications 12 SP4 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Enterprise Storage 5 From an advisory covering 5 CVEs |
before 5.1.3-26.13.1 | 5.1.3-26.13.1 |
strongswanSUSE:Linux Enterprise Point of Sale 11 SP3 From an advisory covering 4 CVEs |
before 4.4.0-6.36.12.1 | 4.4.0-6.36.12.1 |
strongswanSUSE:Linux Enterprise Server 11 SP4-LTSS From an advisory covering 4 CVEs |
before 4.4.0-6.36.12.1 | 4.4.0-6.36.12.1 |
strongswanUbuntu:14.04:LTS |
before 5.1.2-0ubuntu2.11, plus listed versions 4.6.4-95.1.0-25.1.0-35.1.1-0ubuntu15.1.1-0ubuntu2 Show 21 moreShow less5.1.1-0ubuntu35.1.1-0ubuntu45.1.1-0ubuntu55.1.1-0ubuntu75.1.1-0ubuntu145.1.1-0ubuntu175.1.2~dr3+git20130120-0ubuntu25.1.2~dr3+git20130120-0ubuntu35.1.2~rc1-0ubuntu35.1.2~rc1-0ubuntu45.1.2~rc2-0ubuntu25.1.2-0ubuntu15.1.2-0ubuntu25.1.2-0ubuntu2.25.1.2-0ubuntu2.35.1.2-0ubuntu2.45.1.2-0ubuntu2.55.1.2-0ubuntu2.65.1.2-0ubuntu2.75.1.2-0ubuntu2.85.1.2-0ubuntu2.10 |
5.1.2-0ubuntu2.11 |
strongswanUbuntu:16.04:LTS |
before 5.3.5-1ubuntu3.8, plus listed versions 5.1.2-0ubuntu65.1.2-0ubuntu75.1.2-0ubuntu85.3.5-1ubuntu15.3.5-1ubuntu2 Show 7 moreShow less5.3.5-1ubuntu35.3.5-1ubuntu3.15.3.5-1ubuntu3.25.3.5-1ubuntu3.35.3.5-1ubuntu3.45.3.5-1ubuntu3.55.3.5-1ubuntu3.7 |
5.3.5-1ubuntu3.8 |
strongswanUbuntu:18.04:LTS |
before 5.6.2-1ubuntu2.3, plus listed versions 5.5.1-4ubuntu25.5.1-4ubuntu35.6.1-2ubuntu15.6.1-2ubuntu25.6.1-2ubuntu35.6.1-2ubuntu45.6.2-1ubuntu25.6.2-1ubuntu2.2 |
5.6.2-1ubuntu2.3 |
strongswanopenSUSE:Leap 15.0 From an advisory covering 5 CVEs |
before 5.6.0-lp150.3.3.1 | 5.6.0-lp150.3.3.1 |
strongswanopenSUSE:Leap 15.1 From an advisory covering 5 CVEs |
before 5.6.0-lp151.4.3.1 | 5.6.0-lp151.4.3.1 |
strongswanopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 5.9.0-1.9 | 5.9.0-1.9 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-17540 is a high vulnerability (CVSS 7.5) in Strongswan, published October 1, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.51%, the 89th percentile. Fixed in strongswan 5.7.1-r0.
References
debian.org/security/2018/dsa-4309
lists.debian.org/debian-lts-announce/2018/10/msg00001.html
strongswan.org/blog/2018/10/01/strongswan-vulnerability-%28cve-2018-17540%29.html
usn.ubuntu.com/3774-1
download.strongswan.org/security/CVE-2018-17540
security.gentoo.org/glsa/201811-16
Show 33 moreShow less
lists.opensuse.org/opensuse-security-announce/2019-11/msg00077.html
lists.opensuse.org/opensuse-security-announce/2019-12/msg00001.html
lists.opensuse.org/opensuse-security-announce/2020-03/msg00047.html
nvd.nist.gov/vuln/detail/CVE-2018-17540
strongswan.org/blog/2018/10/01/strongswan-vulnerability-(cve-2018-17540).html
github.com/advisories/GHSA-7wxf-w2jw-5jhr
security.alpinelinux.org/vuln/CVE-2018-17540
security-tracker.debian.org/tracker/CVE-2018-17540
suse.com/support/update/announcement/2019/suse-su-20193056-1
bugzilla.suse.com/1093536
bugzilla.suse.com/1094462
bugzilla.suse.com/1107874
bugzilla.suse.com/1109845
suse.com/security/cve/CVE-2018-10811
suse.com/security/cve/CVE-2018-16151
suse.com/security/cve/CVE-2018-16152
suse.com/security/cve/CVE-2018-17540
suse.com/security/cve/CVE-2018-5388
suse.com/support/update/announcement/2019/suse-su-20193266-1
bugzilla.suse.com/1009254
bugzilla.suse.com/1071853
suse.com/support/update/announcement/2022/suse-su-202214887-1
bugzilla.suse.com/1194471
suse.com/security/cve/CVE-2021-45079
ubuntu.com/security/CVE-2018-17540
ubuntu.com/security/notices/USN-3774-1
cve.org/CVERecord?id=CVE-2018-17540
lists.opensuse.org/archives/list/[email protected]/thread/V72HVR7HTXMHBWIRVKULTGTBNB7GX2V3
lists.opensuse.org/archives/list/[email protected]/thread/V6PYSTPUD6KHGTVSWSXGQVRQQ6SLUQ6H
suse.com/security/cve/CVE-2017-11185
suse.com/security/cve/CVE-2017-9022
suse.com/security/cve/CVE-2017-9023
suse.com/security/cve/CVE-2018-6459