cve.bz

CVE-2018-16152

7.5 highEPSS 1.9%

High (7.5). EPSS 1.9% estimated probability of exploitation activity in the next 30 days.

On this page
In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0, the RSA implementation based on GMP does not reject excess data in the digestAlgorithm.parameters field during PKCS#1 v1.5 signature verification. Consequently, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation when only an RSA signature is used for IKEv2 authentication. This is a variant of CVE-2006-4790 and CVE-2014-1568.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
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-16152 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16152?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16152?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-16152 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 NVD's CPE matches.

ProductAffected
strongswan:strongswanfrom 4.0.0 through 4.6.4
strongswan:strongswanfrom 5.0.0 before 5.7.0
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8strongswan5.2.1-6+deb8u7DLA-1522-1
Debian9strongswan5.5.1-4+deb9u3DSA-4305-1
Debian12, 13, 14strongswan5.7.0-1DEBIAN-CVE-2018-16152
Ubuntu14.04:LTSstrongswan5.1.2-0ubuntu2.10UBUNTU-CVE-2018-16152 USN-3771-1
Ubuntu16.04:LTSstrongswan5.3.5-1ubuntu3.7UBUNTU-CVE-2018-16152 USN-3771-1
Ubuntu18.04:LTSstrongswan5.6.2-1ubuntu2.2UBUNTU-CVE-2018-16152 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
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSstrongswan4.4.0-6.36.12.1SUSE-SU-2022:14887-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
Alpinev3.5, v3.6strongswan5.5.3-r2ALPINE-CVE-2018-16152
Alpinev3.7strongswan5.6.3-r1ALPINE-CVE-2018-16152
Alpinev3.8strongswan5.6.3-r2ALPINE-CVE-2018-16152
Alpinev3.9, v3.10, v3.11 and 13 morestrongswan5.7.0-r0ALPINE-CVE-2018-16152

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7strongimcvNot affected

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-16152.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON