Debian DSA-4305-1 : strongswan - security update

high Nessus Plugin ID 117678

Synopsis

The remote Debian host is missing a security-related update.

Description

Sze Yiu Chau and his team from Purdue University and The University of Iowa found several issues in the gmp plugin for strongSwan, an IKE/IPsec suite.

Problems in the parsing and verification of RSA signatures could lead to a Bleichenbacher-style low-exponent signature forgery in certificates and during IKE authentication.

While the gmp plugin doesn't allow arbitrary data after the ASN.1 structure (the original Bleichenbacher attack), the ASN.1 parser is not strict enough and allows data in specific fields inside the ASN.1 structure.

Only installations using the gmp plugin are affected (on Debian OpenSSL plugin has priority over GMP one for RSA operations), and only when using keys and certificates (including ones from CAs) using keys with an exponent e = 3, which is usually rare in practice.

- CVE-2018-16151 The OID parser in the ASN.1 code in gmp allows any number of random bytes after a valid OID.

- CVE-2018-16152 The algorithmIdentifier parser in the ASN.1 code in gmp doesn't enforce a NULL value for the optional parameter which is not used with any PKCS#1 algorithm.

Solution

Upgrade the strongswan packages.

For the stable distribution (stretch), these problems have been fixed in version 5.5.1-4+deb9u3.

See Also

https://security-tracker.debian.org/tracker/CVE-2018-16151

https://security-tracker.debian.org/tracker/CVE-2018-16152

https://security-tracker.debian.org/tracker/source-package/strongswan

https://packages.debian.org/source/stretch/strongswan

https://www.debian.org/security/2018/dsa-4305

Plugin Details

Severity: High

ID: 117678

File Name: debian_DSA-4305.nasl

Version: 1.4

Type: local

Agent: unix

Published: 9/25/2018

Updated: 12/20/2018

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:strongswan, cpe:/o:debian:debian_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Patch Publication Date: 9/24/2018

Reference Information

CVE: CVE-2018-16151, CVE-2018-16152

DSA: 4305